Page 1 of 1

convert: coders/png.c:7013: WriteOnePNGImage: Assertion `(unsigned long) packet_index < number_colors' failed.

Posted: 2015-03-02T03:18:56-07:00
by IMq
Dear all,

I am trying to reduce the bit-depth of a PNG image to 8-bit using the following command:
convert input.png -colors 256 png8:output.png

The error I am receiving is the following:
convert: coders/png.c:7013: WriteOnePNGImage: Assertion `(unsigned long) packet_index < number_colors' failed.

I am using the following version/ platform/ API:
Version: ImageMagick 6.5.4-7 2014-01-30 Q16 OpenMP http://www.imagemagick.org
Platform: Linux
API: Bash Shell

Anybody knows why I it is not working?

Vera

PS: I don't see the option to upload the image to help testing

Re: convert: coders/png.c:7013: WriteOnePNGImage: Assertion `(unsigned long) packet_index < number_colors' failed.

Posted: 2015-03-02T03:42:58-07:00
by dlemstra
Can you upgrade to the latest version and see if you can reproduce the problem? Your version is ancient...