Colortable bug w alpha channel image
Posted: 2016-07-31T20:34:51-07:00
Hello Magick Peoples
I ran the following under MacOSX 10.11.4 using ImageMagick 6.9.1-0 from the cactuslab binary.
I have run into a nasty bug that seems to be related to the number of colors in an image with an alpha channel. Like so.
convert CatHead_150x150.png -colors 65536 CatHead_150x150_65K.png
The input image URL: http://www.modejong.com/misc/CatHead_150x150.png
Even though the colortable size is very large, ImageMagick cannot seem to deal with the large number of color in the original image. The output is badly distorted. I tried this conversion with an alpha channel image on other less complex images (fewer total number of colors) and that worked fine, so it is likely that this bug is caused by some type of overflow or range issue related to the original number of colors.
I also tried to compose the alpha channel image over a white background before doing the compression, and that produce a great looking image. So, this seems to be a specific bug related to the alpha channel.
I ran the following under MacOSX 10.11.4 using ImageMagick 6.9.1-0 from the cactuslab binary.
I have run into a nasty bug that seems to be related to the number of colors in an image with an alpha channel. Like so.
convert CatHead_150x150.png -colors 65536 CatHead_150x150_65K.png
The input image URL: http://www.modejong.com/misc/CatHead_150x150.png
Even though the colortable size is very large, ImageMagick cannot seem to deal with the large number of color in the original image. The output is badly distorted. I tried this conversion with an alpha channel image on other less complex images (fewer total number of colors) and that worked fine, so it is likely that this bug is caused by some type of overflow or range issue related to the original number of colors.
I also tried to compose the alpha channel image over a white background before doing the compression, and that produce a great looking image. So, this seems to be a specific bug related to the alpha channel.