Png files larger in newer versions of ImageMagick

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
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add -strip to your command line. Does that decrease the size of your PNG image? If not, post a URL to RGB.psd so we can investigate further.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add -depth 8 to your command line.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

More verbosely. Your old IM was only used 8bit quality for colors. your new version uses a higher quality of 16 bits, and the PNG output reflected that change saving at a higher quality.

You can also save using a specify style of PNG image... for example

Code: Select all

   convert .....    png24:image.png
will aso force 8bit quality

or you can force a 256 color pallet using png8: or even...

Code: Select all

   convert -type Palette  input.jpg  output.png
or a 8bit greyscale pallette using

Code: Select all

   convert -type Scale  input.jpg  output.png
See IM Examples, PNG format
http://www.cit.gu.edu.au/~anthony/graph ... rmats/#png
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply