WINAMP.COM | Forums > Developer Center > NSIS Discussion > AdvSplash + gif, jpeg and others |
| Pages (2): [1] 2 » |
Last Thread
Next Thread
|
| Author |
|
|
Takhir Major Dude
Registered: Feb 2004 |
AdvSplash + gif, jpeg and others
Jpeg compression is a wellknown quality/size decision, may be usefull for a big splash images.
|
||
|
|
|
John P. Member
Registered: Jun 2004 |
Thanks, this is something I've been looking for lately. I thought it was weird that the NSIS installer wouldn't allow the use of a .jpg image as the splash image. |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Thanks, John. |
||
|
|
|
John P. Member
Registered: Jun 2004 |
It works for .gif with and without transparency, and for .jpg. |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
The same problem with tiff. OleLoadPicturePath returns NULL instead of interface pointer
|
||
|
|
|
John P. Member
Registered: Jun 2004 |
Are you going to try to make it work for .tiff and .png images as well, or should I go for .gif instead? |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Right now my tasks list is too long for this, may be later |
||
|
|
|
Yathosho Forum King
Registered: Jan 2002 |
png ok, but what's the point in tiff support? __________________ |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
PhotoShop asks me about tiff compression every time (none/lzw/zip), plain files looks really compressed. So why not? |
||
|
|
|
deguix Major Dude
Registered: Dec 2002 |
__________________ |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
OK, color extraction added, code based on the Andy Key GBM lib, +0.5 kB only
|
||
|
|
|
John P. Member
Registered: Jun 2004 |
Any coders out there willing to continue Takhir's work? |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
my first idea was to use jpeg - it can lose a bit of image quality, but at the same time gives (or must give |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
I added mp3 support to "play" function and renamed plug-in back to AdvSplash (because only 5% of code is mine
|
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
On Win2K in some situations after splash window installer appeared in the background, fixed. 2 KichiK - this was caused by TOPMOST splash window style.
|
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Improved screen redraw after image was destroyed for "no fading" modes - old (included to NSIS distribution AdvSplash) plug-in on Win98 lefts image scraps on the screen.
|
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
GlobalFree() bad pointer bug fixed (from original AdvSplash code).
|
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
New mode with /BANNER key - due to few lines of code from the nxs plug-in it not stops installer execution while displaying image banner. This makes possible to perform some background initalization (like Banner plug-in does, but with image instead of text). code: Two new dll entry points for this mode: wait and stop. First - waits for the end of 'show' and returns control to installer, stop - terminates it (see included Example.nsi). New /NOCANCEL key - disables 'exit on user click' default behaviour. code:
|
||
|
|
|
John P. Member
Registered: Jun 2004 |
I have a problem trying to use these files after I installed NSIS 2.08 Last edited by John P. on 08-09-2005 at 03:30 PM |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
I retested June 26 version with NSIS 2.08 on XP Pro without any problems. So please make following: code: "Invalid command "Invalid command: ipicsplash::show"" meand that new NSIS version has removed ipicsplash.dll from your plugins (and a lot of other usefull things you had under NSIS folder). Next time do not uninstall previous NSIS version when installing new one (NSIS installer' default) - NSIS uninstaller script was written by "left hand", they removed source code from installer and also deleted all usefull stuff we had under NSIS folder ![]() I will be offline 10 days beginning Thursday - test code now
|
||
|
|
|
John P. Member
Registered: Jun 2004 |
Yes, I'm very sorry. I came back here now to say that it wasn't the latest NSIS build that was at fault, because I have now tried build 2.00 and had the same problem. |
||
|
|
|
grahama Senior Member
Registered: Sep 2004 |
any chance of supporting animated gifs in newadvsplash ? |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Current version not supports animation, this is improved AdvSplash only (more image and sound formats, /BANNER mode). Windows animation control works with AVI (MSDN declares this), but not with GIF. For AVI it is possible to use existing control as splash window, but animated GIFs require some code I guess (for example http://www.codeguru.com/Cpp/G-M/bit...icle.php/c4879/ ) |
||
|
|
|
grahama Senior Member
Registered: Sep 2004 |
understood |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
New plug-in entry point 'hwnd' - gets splash window handle, may be usefull for additional window drawing (in the /banner mode). wiki page |
||
|
|
|
meganoob Guest
Registered: Not Yet |
Sorry, but I am having color problems with NewAdvSplash... In jpeg and bmp images, -1 is setting white to be transparent |
||
|
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Can you give detailed description of problem? I re-tested last version (from wiki) and it worked fine with jpeg and bmp both with -1 (no transparency) and some hex value as transp. color. Included to package Example.nsi shows bmp image with transparency "${NSISDIR}\Contrib\Graphics\Wizard\llama.bmp". White value is 0xffffff |
||
|
|
|
meganoob Guest
Registered: Not Yet |
Here is the screenshot with code highlighted in the back: |
||
|
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
__________________ |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Thanks you, meganoob, I could reproduce and fix the bug. New file uploaded to wiki |
||
|
|
|
zeeh3 Senior Member
Registered: Aug 2005 |
You are welcome, Takhir |
||
|
|
|
NukeyDoo Junior Member
Registered: Jun 2005 |
I am havng a problem with the newadvsplash plugin. I grabbed the one from Takhir's wiki page, and when I run it, the sound and transparent gif show/play ok, but when it's unloading the installer crashes. I'm not sure what I'm doing wrong. |
||
|
|
|
dandaman32 Senior Member
Registered: Jan 2005 |
You need the /NOUNLOAD flag after newadvsplash::show: -Dan __________________ |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Yes, /nounload required, but in the first call ('play' this case). For 'modal' banner code: |
||
|
|
|
NukeyDoo Junior Member
Registered: Jun 2005 |
Works beautifully now, Thanks! |
||
|
|
|
NathanProbst Junior Member
Registered: Dec 2005 |
Small change to prevent grabbing focus...
FWIW, I have slightly modified my copy of NewAdvSplash.dll (thanks for the sources!) to add the SWP_NOACTIVATE flag to the SetWindowPos call in the WndProc function. For my purposes, it was annoying that the splash grabbed focus when it displayed. This was on or about line 105 in advsplash.cpp.
|
||
|
|
|
NathanProbst Junior Member
Registered: Dec 2005 |
As a quick follow up, I also found it necessary to remove the call to SetForegroundWindow() in the function sf(). Without this change, there is an annoying momentary window activation as the display is ending. |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
Thanks, Nathan! |
||
|
|
|
Takhir Major Dude
Registered: Feb 2004 |
New version available: |
||
|
|
|
| Pages (2): [1] 2 » |
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > AdvSplash + gif, jpeg and others |
Forum Rules:
|