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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
IMq
Posts: 1
Joined: 2015-03-02T01:48:21-07:00
Authentication code: 6789

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

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

Can you upgrade to the latest version and see if you can reproduce the problem? Your version is ancient...
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply