Page 1 of 1

Animated Gif Conversion

Posted: 2014-06-06T05:22:59-07:00
by United36
I am using ImageMagick to convert a series of screen captures into an animated GIF. The problem I have is that the resolution degrades when the animated GIF is created. Is there anyway to retain the screen capture resolution when converting to the animated gif?

Any help is greatly appreciated!

Thanks!

Re: Animated Gif Conversion

Posted: 2014-06-06T05:28:40-07:00
by holden
Is it the resolution, or is it because gifs only support 256 colors as opposed to millions that other formats do, from wikipedia:
"The (gif) format supports up to 8 bits per pixel for each image, allowing a single image to reference its own palette of up to 256 different colors chosen from the 24-bit RGB color space. It also supports animations and allows a separate palette of up to 256 colors for each frame. These palette limitations make the GIF format unsuitable for reproducing color photographs and other images with continuous color, but it is well-suited for simpler images such as graphics or logos with solid areas of color."

I think the crappiness is part of the charm 8)

Re: Animated Gif Conversion

Posted: 2014-06-06T05:42:18-07:00
by United36
Not sure, but is does look like a resolution issue. I am not sure how to check the resolution of an image exactly. I wonder if the image properties would give me the dpi?

Re: Animated Gif Conversion

Posted: 2014-06-06T09:52:49-07:00
by fmw42
I do not believe that gif images support any density parameter. If it does, then using

identify -verbose image.gif

will show Resolution and Units.

Re: Animated Gif Conversion

Posted: 2014-06-06T09:56:14-07:00
by snibgo
If resolution changes, you would be able to see it with "identify -verbose". But I don't think GIF stores resolution, so it can't change.

What command "degrades" the GIF?

Re: Animated Gif Conversion

Posted: 2014-06-06T10:00:42-07:00
by fmw42
How are you creating your animated gif from the source images. What format are the source images? What is your exact command line? What platform and what version of IM? If your source images are 24-bit color, then when converting to gif, they become 8-bit color with 256 or less colors. Also you may see changes from frame to frame if you do not use the same color palette to reduce the colors. See -remap http://www.imagemagick.org/Usage/quantize/#remap.

We really need to know more about your processing and environment to help further.