Chris
Chris

Reputation: 889

ImageMagick Animated GIF not working correctly

I am trying to upload some animated GIFs. Some work great, others get messed up as seen in the attached example. Here is my basic ImageMagick command:

exec(" convert elephant_upload.gif -strip -resize 600x600 elephant_output.gif ");

Anyone know what im doing wrong here?

Original Gif:

enter image description here

Processed Gif:

enter image description here

Upvotes: 1

Views: 1265

Answers (1)

fmw42
fmw42

Reputation: 53089

You need to coalesce your frames in Imagemagick before resizing in your command. So try

convert elephant.gif -strip -coalesce -resize 600x600 -layers optimize x.gif

enter image description here

Upvotes: 2

Related Questions