how to make a gif out of png images

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
seny
Posts: 2
Joined: 2016-11-06T02:45:32-07:00
Authentication code: 1151

how to make a gif out of png images

Post 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
Post Reply