kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.09k stars 476 forks source link

Existing png-8 images throw error? #276

Open rfs- opened 6 years ago

rfs- commented 6 years ago

Will this fail if an image is already a png-8?

I get the following errors on any png-8 images I already have:

error: PNG unsigned integer out of range (libpng failed) error: cannot decode image

Was expecting it to either attempt to optimize further or at minimum gracefully return and not corrupt the image.

kornelski commented 6 years ago

I've seen that error before. I think it's fixed in the latest version.

kornelski commented 6 years ago

BTW, running pngquant twice makes image only worse. Bad idea in all cases.

rfs- commented 5 years ago

Just wanted to follow up on this. Almost a year later and still getting this error. I believe I was on 2.11 then updated last night to 2.12 and still continue to receive this error. libpng v1.6.35

PNG-files again I'm pretty sure. Specifically I know when I export png-8's out of Adobe Fireworks and try to process, it throws this error.

Attached is a test image that should throw the error (unless github does some other processing to change the image).

testpng8