Archive: Actual size of an image on a "welcome" screen


Actual size of an image on a "welcome" screen
Hi,
Is there a way for me to have NSIS preserve the actual size of a bitmap on the screen? What currently happens is that NSIS attempts to stretch the image to fill in available empty space. My image is 2 in by 2 in, but on a "welcome" screen, when inserted", the image looks much taller and narrower.

Thanks,
Victor


Stretching is turned on because it should also work with custom DPI settings. If you don't have a full-size image, not stretching is of course better. I'll add an option to the Modern UI.


Originally posted by Joost Verburg
Stretching is turned on because it should also work with custom DPI settings. If you don't have a full-size image, not stretching is of course better. I'll add an option to the Modern UI.
Hi,
So what can I do for now to fix this problem?
Thanks,
Vic

You will need to modify the MUI system.nsh file.
You need to find the "RESIZETOFIT"
If you search for it, then blank out the part (so there is no longer resietofit), then it might work ok.

-Stu


Because of an InstallOptions bug, IO always stretches (even without the RESIZETOFIT flag). This is a flag in ioSpecial.ini, not in System.nsh.

You will have to wait one week before this bug will be fixed and a new version of the Modern UI will be uploaded.

If you need it within a week, create a 164x314 pixels image yourself.


Yeah.
What I did, was just add white space around my image, so it looked just like the background (and the image didn't look stretched).

-Stu


I just had a little bit of time to fix it, earlier than I expected :) See the Modern UI Readme.


Excuse me, where do I download Modern UI from?


Its part of NSIS, just download the latest CSV version of NSIS here

Vytautas