Is it possible to improve on this Gif?

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
nigelgardiner
Posts: 2
Joined: 2017-09-12T02:10:53-07:00
Authentication code: 1151

Is it possible to improve on this Gif?

Post by nigelgardiner »

Hi There

I've just started playing with the Gif format to see if I can use it to hold short animated sequences of rendered rotating labels.

This is what I have http://www.nigelgardiner.co.nz/2017/09/ ... -cg-label/

The frames were generated at 25fps so this is the convert I used convert -delay 0.25 -loop 0 *.png sass.gif

My main concern is the noise? in the shadows, so I was wondering is there a way to improve on this?

Any advice much appreciated.

I'm running ImageMagick 6.8.9-9 on Ubuntu.

thanks
Nigel.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is it possible to improve on this Gif?

Post by fmw42 »

I don't see much problem. But if you think there is, then the reason may be that your pngs have more than 256 colors and each frame is different. Gifs only hold 256 colors max and each frame probably is quantized differently. One way to try to improve that would be to make each frame have the same <=256 colors. See -remap (using -dither none) at http://www.imagemagick.org/Usage/quantize/#remap on each frame from the same (<=256 color) colormap image. Then combine them into your gif.
nigelgardiner
Posts: 2
Joined: 2017-09-12T02:10:53-07:00
Authentication code: 1151

Re: Is it possible to improve on this Gif?

Post by nigelgardiner »

Hi

Ok, thanks, I'll try reducing the colors and see if the color range reduction is significant.

cheers
Nigel.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is it possible to improve on this Gif?

Post by fmw42 »

You must use the very same color table image to remap all the images to the same colors, not just the same number of colors.
Post Reply