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 » 2016-11-06T12:11:14-07:00

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: 25032
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 » 2016-11-06T13:12:37-07:00

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