chiark / gitweb /
Explicitly set RGB colourspace in icon.pl's use of convert.
authorSimon Tatham <anakin@pobox.com>
Sun, 24 Apr 2016 06:30:20 +0000 (07:30 +0100)
committerSimon Tatham <anakin@pobox.com>
Sun, 24 Apr 2016 06:30:20 +0000 (07:30 +0100)
commit6a8a53e7235a8621313b792b498ebb43452f9e38
tree594e298cb1ac0338aceed8be2f1e315f6306b9c2
parent02ce237f911f7b970ea9b093226a9e7d09fffbf4
Explicitly set RGB colourspace in icon.pl's use of convert.

This is that annoying feature of up-to-date 'convert' in which
converting to or from a PNG file defaults to returning RGB values that
have been 'helpfully' gamma-corrected (or some such) from the exact
data stored in the source file to some nonsense you didn't want.

Usually the worst this causes is slightly washed-out looking graphics,
but in this case, since my entire aim was to squash the image into a
specific set of exact RGB values so as to turn it into a paletted
Windows icon file, it caused an actual build failure when the next
loop in icon.pl couldn't find the gamma-corrected values in its
expected palette map, and no wonder.
icons/icon.pl