Page 1 of 1

Image size while using -coalesce

Posted: 2011-09-09T04:22:08-07:00
by djrulz
Hi,

I started to use IM just from yesterday, for converting my flash into animated GIF.
I use -coalesce to do that.
I export flash movie as BMP sequence and then use -coalesce.
What my problem in here is that I need the file size to be less than 1mb, since I'm using these animated GIF's in HTML mailer.
Is there any option to reduce the output file size?
Or is any other way around to make a animated GIF from flash.

PS: I tried exporting my flash in other sequence well (JPG, PNG, GIF), but found that BMP sequence to GIF gives me lower file size than other.

Re: Image size while using -coalesce

Posted: 2011-09-09T09:26:12-07:00
by fmw42
use -colors to reduce the number of colors

or

use -remap to make all the images have the same colormap (with less than 256 colors)

see
http://www.imagemagick.org/script/comma ... php#colors
http://www.imagemagick.org/script/comma ... .php#remap
http://www.imagemagick.org/Usage/quantize/#remap

Re: Image size while using -coalesce

Posted: 2011-09-14T18:05:19-07:00
by anthony
coalesce converts the image into a full image for every frame with no GIF optimization to reduce its size. As such using coalesce is essentually generating the LARGEST GIF ANIMATION posible, with only basic GIF data compression being used.

Before saving to GIF try -layers Optimize.

As a quick guide to methods of animation optimization see Video to GIF Optimization
http://www.imagemagick.org/Usage/video/

But for details of optization of GIF animations see
http://www.imagemagick.org/Usage/anim_opt/

Re: Image size while using -coalesce

Posted: 2011-09-14T21:59:07-07:00
by djrulz
Thanks for the reply and info..
I used the -remap method and found that it reduced the file size but color quality is diminished.

And i'm just gonna look into the Video Handling guide ..

Thanks again.

Re: Image size while using -coalesce

Posted: 2011-09-15T10:02:05-07:00
by fmw42
try Anthony's suggestion of optimizing the result.
Before saving to GIF try -layers Optimize.

Re: Image size while using -coalesce

Posted: 2011-09-21T23:21:45-07:00
by djrulz
Hi,
I tried the optimize method and it worked fine.. :D
Thanks a lot guys.
Dj