Problem cropping an indexed png file

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problem cropping an indexed png file

Post by anthony »

By default IM will not generate an indexed PNG, unless you specifically use a PNG8: format type, and that is equivelent to a GIF 8bit boolean transparency format.

IM can 't always generate the most optimal image file for every image format. Instead you can use other programs like OptiPNG to format the PNG in the most optimal way without data loss, or use PngNQ to quantize the PNG image to a 8bit colored index format (not recommended).

See http://imagemagick.org/Usage/formats/#png_non_im
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply