Page 1 of 1

the read function does not work for .gif archive

Posted: 2016-11-06T12:11:14-07:00
by seny
when I read a archive .gif with read and write it, I don't get an animated image, I get a static image.

this is how I am trying:

int main(int argc,char **argv)
{
InitializeMagick(*argv);
Image image;
image.read("blue_heart_02.gif");
image.write( "uopoiopo.gif");
}

Re: the read function does not work for .gif archive

Posted: 2016-11-06T13:12:37-07:00
by fmw42
What is an "archive" gif? You probably need to set -delay and -loop to get it to animate.

Please always provide your IM version and platform! If the above does not help, then post your input image to some place such as dropbox.com and put the URL here.