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.

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);