Closed p0nce closed 7 months ago
OK so the BMP that comes with NSIS doesn't exhibit this wrong behaviour! (EDIT: yes it does) There is something interesting inside.
nsis3-vintage.zip
Comparison of that BMP when re-saved with MSPaint, colors are then wrong, which could create the impression of bad resampling.
Comparison of bitmap header in NSIS and MSPaint output:
Learning after a good deal of investigation:
There is no way to improve the resampling apparently in case of 150% DPI. Even NSIS bitmaps suffer. The workaround would probably to adopt a "pixel" style.
that image resampling is not worse than blurry text anyway, and only shows in non-100% DPI.
BMP needs to be saved either in MSPaint, or in GIMP with the export option "do not add colorspace information". It can then be: 8-bit indexed or 24-bit true color. More tests needed. No way to have alpha.
[x] Update documentation about that MSPaint export, we now know an alternative for it
[x] Set ManifestDpiAware to true in generated NSIS script
[x] Update Auburn image for the installers to support such a nearest-neighbour resize
Done.
When using
ManifestDPIAware true
in NSIS script, the image given toMUI_HEADERIMAGE_BITMAP
doesn't display right, whatever the DPI.150% DPI
100% DPI