diff options
| author | Simon Tatham <anakin@pobox.com> | 2015-10-03 13:15:59 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-03 16:07:20 +0100 |
| commit | c0308c9319d40438db668e67fb944e08062148c7 (patch) | |
| tree | 67336058c100a08c0965e1e3656dee3065a342d5 /icons | |
| parent | 9df80d7587f9d0060ab74d3cb862e438a9f79291 (diff) | |
| download | puzzles-c0308c9319d40438db668e67fb944e08062148c7.zip puzzles-c0308c9319d40438db668e67fb944e08062148c7.tar.gz puzzles-c0308c9319d40438db668e67fb944e08062148c7.tar.bz2 puzzles-c0308c9319d40438db668e67fb944e08062148c7.tar.xz | |
Add '-set colorspace RGB' to some icon convert commands.
Its absence was breaking the icon build on Ubuntu 14.04, because you
ask convert to map an image into a specific 16-colour palette, and it
does so and _then_ nonconsensually maps those colours in turn through
a colourspace transformation you didn't ask for, causing icon.pl to
fail an assertion when it finds an RGB value not in the palette.
Diffstat (limited to 'icons')
| -rw-r--r-- | icons/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/icons/Makefile b/icons/Makefile index e5720e8..612b93c 100644 --- a/icons/Makefile +++ b/icons/Makefile @@ -27,6 +27,10 @@ RC = $(patsubst %,%.rc,$(PUZZLES)) BIN = ../ PIC = ./ +# Work around newer ImageMagick unilaterally distorting colours when +# converting to PNG. +CSP = -set colorspace RGB + base: $(BASE) web: $(WEB) pngicons: $(P48D24) $(P32D24) $(P16D24) @@ -93,7 +97,7 @@ $(IBASE): %-ibase.png: %-base.png # seems to work better than reducing it in 24 bits and then # dithering. $(IBASE4): %-ibase4.png: %-ibase.png - convert -colors 16 +dither -map $(PIC)win16pal.xpm $^ $@ + convert -colors 16 +dither $(CSP) -map $(PIC)win16pal.xpm $^ $@ # Build the 24-bit PNGs for the icons, at three sizes. $(P48D24): %-48d24.png: %-ibase.png @@ -115,15 +119,15 @@ $(P48D8) $(P32D8) $(P16D8): %d8.png: %d24.png # much...) $(P48D4): %-48d4.png: %-ibase4.png $(PIC)square.pl 48 1 $^ $@-tmp2.png - convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@ + convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm $@-tmp2.png $@ rm -f $@-tmp2.png $(P32D4): %-32d4.png: %-ibase.png $(PIC)square.pl 32 1 $^ $@-tmp2.png - convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@ + convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm $@-tmp2.png $@ rm -f $@-tmp2.png $(P16D4): %-16d4.png: %-ibase.png $(PIC)square.pl 16 1 $^ $@-tmp2.png - convert -colors 16 -map $(PIC)win16pal.xpm $@-tmp2.png $@ + convert -colors 16 $(CSP) -map $(PIC)win16pal.xpm $@-tmp2.png $@ rm -f $@-tmp2.png # Build the actual Windows icons themselves, by feeding all those |