void test_wand()
{
char* inputPath =(char*) "11.gif";
char* outputPath =(char*) "1211.gif";
MagickBooleanType status;
MagickWand *magick_wand;
/*
Read an image.
*/
MagickWandGenesis();
magick_wand = NewMagickWand();
status = MagickReadImage(magick_wand, inputPath);
/*
Turn the images into a thumbnail sequence.
*/
MagickResetIterator(magick_wand);
while (MagickNextImage(magick_wand) != MagickFalse)
MagickResizeImage(magick_wand, 960, 540, LanczosFilter);
/*
Write the image then destroy it.
*/
status = MagickWriteImages(magick_wand, outputPath, MagickTrue);
magick_wand = DestroyMagickWand(magick_wand);
}
ImageMagick 修改gif 大小
于 2024-08-21 19:01:57 首次发布