Hi, all
Now,I am using Magickcore API for my project,In order to reduce Gif file size,I need to use global color table instead of local color table,but I can't find any C api that can fix my problem.
thanks for any help.
use global color table instead of local color table
Re: use global color table instead of local color table
ImageMagick utilizes a global colormap if all images in your sequence have the exact same colormap. You can ensure it does with the RemapImages() method.
Re: use global color table instead of local color table
Thanks for your quick respondse,after using QuantizeImages(),size of my gif has been increased form 141163 bytes to 179110 bytes,in your advice in this topic(viewtopic.php?f=7&t=14172),I attempt to solve this problem with RemapImages() as follows ,object image was set up by BlobToImage() a gif.magick wrote:ImageMagick utilizes a global colormap if all images in your sequence have the exact same colormap. You can ensure it does with the RemapImages() method.
Code: Select all
remap_image = GetLastImageInList(image);
//remap_image = GetImageFromList(image, 2);
RemapImages(p_QuantizeInfo, image, remap_image);
Re: use global color table instead of local color table
I have resolved the Problem, when I use methord QuantizeImages() ,I don't set parameter whether dither or not,After set QuantizeInfo.dither=MagickFalse,It reach original file size.