the read function does not work for .gif archive

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

the read function does not work for .gif archive

Post 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");
}
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

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