Page 1 of 1

how to make a gif out of png images

Posted: 2016-11-06T02:56:21-07:00
by seny
I am programig a aplication un c++ and I want make a gif out of png images:
I used this command in a terminal : convert -delay 5 -loop 3 *.png -scale 480x240 a.gif; and this work ok.

But I want to do the similar acction in c++ aplication.

I try to do:
I am using
#include <Magick++.h>
int main(int argc,char **argv)
{
InitializeMagick(*argv);
Image image;
image.read("blue_heart1.png");
image.interlaceType(LineInterlace);
image.animationDelay(1);
image.animationIterations(5);
image.write( "oooopp.gif");

}
but thi not work ok