Dithering of GIF animation

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
andraspap

Dithering of GIF animation

Post by andraspap »

I am trying to export GIF image files with the MagickWriteImages API. This API automatically dithers the animated GIF. I wonder what would be the way to turn off that dithering?
The command line tool "convert" lets to turn off that default dithering with the "+dither +map" options. So far I was not able to find API calls that lets the client do that via the magick wand API.

Any help, guidance is appreciated,
Thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dithering of GIF animation

Post by magick »

Try calling MagickQuantizeImages() before you call WriteImages().
andraspap

Re: Dithering of GIF animation

Post by andraspap »

It worked, thank you for your help. It also results in about 10% speed up in animated GIF creation. (See my other issue: GIF generation time... PostPosted: Fri Dec 14, 2007 12:09 pm )
Post Reply