Resize and minimize

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
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resize and minimize

Post by fmw42 »

use -depth 8 and/or -colors 256 (or less)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Resize and minimize

Post by anthony »

GIF file format is 8 bit depth only by it defintion.

To make GIF smaller you need to reduce the colors, or order the colors so that its compression algorthim can find more 'common color sequences'. Normal IM color dithering does not do this very well, as it uses a fairly psuedo-random dither method.

You may get better results using some method of -order-dithering

See the lat part of Video to GIF, Optimization Summary
http://www.imagemagick.org/Usage/video/#gif
where ordered dither is interoduced. It does help a lot for very large single frame GIFs, and not just smaller multi-frame GIFs.


I would love to try and implement some form of ordered dither using a user supplied, or automatic color quantized, color map, but have yet to find a good reference to the techniques involved.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply