Page 1 of 1

Dithering of GIF animation

Posted: 2008-02-13T16:20:26-07:00
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.

Re: Dithering of GIF animation

Posted: 2008-02-13T17:37:50-07:00
by magick
Try calling MagickQuantizeImages() before you call WriteImages().

Re: Dithering of GIF animation

Posted: 2008-02-15T10:45:37-07:00
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 )