Imagemagic image size get smaller MB

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Darknet
Posts: 18
Joined: 2014-01-15T10:52:19-07:00
Authentication code: 6789

Imagemagic image size get smaller MB

Post by Darknet »

How do I get the images smaller? I mean the Megabite/kilobyte not the witdth and height.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Imagemagic image size get smaller MB

Post by snibgo »

Generally: choose a file type that supports compression (eg PNG, TIFF, JPG) and set the appropriate settings. At the command level, these are "-compress" and "-quality".

You might also reduce the bit depth (eg 8 bits/channel/pixel instead of 16), or use indexed (palette) storage.

I don't know how to do this in Magick++.
snibgo's IM pages: im.snibgo.com
Post Reply