Image Optimization

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
annagot
Posts: 1
Joined: 2012-11-13T01:18:19-07:00
Authentication code: 6789

Image Optimization

Post by annagot »

I need to make from 3 JPG files a GIF file.
I need the GIF file to be very small (max 35k).
How do I perform the following actions:
Color reduction algorithm: Perceptual
Colors reduced to: 52
Dithering algorithm: Diffusion

These actions are done in photoshop and made it to a desired file size.
But in the meantime every action I do with ImageMagick by convert I did not produce the desired results, and my GIF file output is too big.

Thank you for the help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Optimization

Post by fmw42 »

I suspect that IM will not make small gif files and does not know about your perceptual color reductions and may be a bit slow. It tries to be as accurate in color reduction as possible.

See
http://www.imagemagick.org/Usage/quantize/#colors
http://www.imagemagick.org/script/quantize.php

Some speed enhancements may be had using -treedepth
http://www.imagemagick.org/script/comma ... #treedepth

You may be better off with other non-IM approaches. see
http://www.imagemagick.org/Usage/formats/#gif_non-im

Let us know what you find for results.
Post Reply