PNG palette bugs in 6.6.1-6

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
Martin.Leese

PNG palette bugs in 6.6.1-6

Post by Martin.Leese »

Hi,

I am getting the following errors using Image Magick 6.6.1-6 (Q16) under Windows XP:

Code: Select all

C:>convert -transparent "rgb(255,255,255)" -quality 100 -colors 10 floppy_front.png floppy_front2.png
convert: tRNS chunk has out-of-range samples for bit_depth `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1457.
convert: Invalid background palette index `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1457.
I am seeing lots of the second error, but only a little of the first.

In case it helps, I have made the input image "floppy_front.png" available under "Miscellany" at:
http://sites.google.com/site/mytemporarydownloads/

Have these bugs been fixed in 6.6.1-7 ?

Many thanks,
Martin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PNG palette bugs in 6.6.1-6

Post by fmw42 »

It is possible that your input image is corrupt or not a valid PNG format.

I get the following when running:

convert floppy_front.png -strip -transparent "rgb(255,255,255)" -colors 10 floppy_front2.png
convert: Invalid background palette index `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1458.


IM 6.6.1-7 Q16 Mac OSX Tiger
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PNG palette bugs in 6.6.1-6

Post by snibgo »

IM 6.6.0-8 Q16 on Windows 7: both versions of the command (Martin's and fmw42's) run without complaint.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PNG palette bugs in 6.6.1-6

Post by magick »

The problem you reported is fixed in ImageMagick 6.6.1-8 Beta. Look for a point release of 6.6.1-8 within a week or two. Thanks.
Post Reply