Code: Select all
#include <wand/magick_wand.h>
int main(int argc, char* argv[])
{
MagickWand *wand = NULL;
MagickWandGenesis();
wand = NewMagickWand();
if (! MagickReadImage(wand, "looped.gif")) {
return 1;
}
MagickSetOption(wand, "loop" , "1");
if (! MagickWriteImages(wand, "unlooped.gif", MagickTrue)) {
return 1;
}
if (wand) {
wand = DestroyMagickWand(wand);
}
MagickWandTerminus();
return 0;
}
Code: Select all
convert -loop 1 looped.gif unlooped.gif
Any ideas on what I'm doing wrong? Thanks!