Palette map bug
Posted: 2008-06-08T04:15:26-07:00
I'm trying to map croco.png to palette.png's palette.
croco.png:
palette.png:
When saving to GIF, everything works as expected:
convert croco.png -map palette.png croco_mapped.gif
croco_mapped.gif:
When using PNG-8, resulting image is corrupted:
convert croco.png -map palette.png png8:croco_mapped_png8.png
croco_mapped_png8.png:
Is this a bug?
Saving to plain PNG works, but transparent color which was white in palette.png becomes black in resulting image (is this also a bug?)...
convert croco.png -map palette.png croco_mapped.png
croco_mapped.png:
^^^ you won't see difference here because Internet Explorer renders it as transparent, but you can see the difference when using ACDSee or other picture viewer if you open this picture.
Please help to solve the png8 issue.
Archive with pictures for testing:
http://bemaniclub.com/Data/af/im_palett ... te_bug.zip
Version: ImageMagick 6.4.1 05/16/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
croco.png:
palette.png:
When saving to GIF, everything works as expected:
convert croco.png -map palette.png croco_mapped.gif
croco_mapped.gif:
When using PNG-8, resulting image is corrupted:
convert croco.png -map palette.png png8:croco_mapped_png8.png
croco_mapped_png8.png:
Is this a bug?
Saving to plain PNG works, but transparent color which was white in palette.png becomes black in resulting image (is this also a bug?)...
convert croco.png -map palette.png croco_mapped.png
croco_mapped.png:
^^^ you won't see difference here because Internet Explorer renders it as transparent, but you can see the difference when using ACDSee or other picture viewer if you open this picture.
Please help to solve the png8 issue.
Archive with pictures for testing:
http://bemaniclub.com/Data/af/im_palett ... te_bug.zip
Version: ImageMagick 6.4.1 05/16/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC