possible bugs in PNG8 IM 6.5.3-2 -any updates?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bugs in PNG8 IM 6.5.3-2 -any updates?

Post by fmw42 »

IM 6.5.3-2 Q16 Mac OSX Tiger.

(Two possible bugs)

First potential bug. I am not getting what I believe should be the correct behavior when convert a Class: DirectClass and Type: GrayscaleMatte PNG (with alpha channel) to PNG8 (expecting Class Pseudoclass and Type: GrayscaleMatte) so as to get a smaller filesize.

Here is the image I got from http://studio.imagemagick.org/pipermail ... 22567.html

Original
Image

I removed the alpha channel to see what was there and also extracted the alpha channel:

Image without alpha:
convert jobs_original.png -alpha off jobs_original_aoff.png
Image

Image alpha channel:
convert jobs_original.png -alpha extract jobs_original_alpha.png
Image

So looks fine to me.

Now when I do:
convert jobs_original.png PNG8:jobs_original_png8.png
Image

It is not what I expected

But when I make it gif, it looks like what I expected:
convert jobs_original.png jobs_original.gif
Image

And if I do:
convert jobs_original.png GIF:- | convert - jobs_original_gif_png.png
Image

The above also looks right and is of Class Pseudoclass and Type: GrayscaleMatte (so smaller filesize)




Second potential bug. When I do

convert jobs_original.png GIF:- | convert - PNG8:jobs_original_gif_png8.png

I now get an error message:
coders/png.c:6990: failed assertion `(unsigned long) packet_index < number_colors'
Abort trap
Last edited by fmw42 on 2009-06-10T09:41:03-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bugs in PNG8 IM 6.5.3-2

Post by fmw42 »

Is there any further information about these two bug reports? Have they been validated? Are they bugs or am I misunderstanding something?

Thanks.

Fred
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bugs in PNG8 IM 6.5.3-2 -any updates?

Post by magick »

We forwarded this bug to glennrp. He is the current maintainer of the PNG module. Feel free to ping him about the problem. If you need an address, send a PM.
Post Reply