Page 1 of 1

[Solved] convert delay error

Posted: 2018-03-01T21:06:16-07:00
by LockStock
Hi, I have been trying to edit the delay on frames within an animated gif. There are 276 frames in the gif. I've been using the following command:

Code: Select all

convert -delay 15x100 input.gif output.gif 
which has worked for me fine in the past however now I am getting the following error...

Code: Select all

convert: corrupt image `input.gif' @ error/gif.c/DecodeImage/505.
convert: corrupt image `input.gif' @ error/gif.c/ReadGIFImage/1365.
convert: no images defined `output.gif' @ error/convert.c/ConvertImageCommand/3275.
Any idea what might be going wrong? I am running MacOS 10.13.1 and using ImageMagick 7.0.7-24 Q16 x86_64.

Cheers,
Locks.

Re: convert delay error

Posted: 2018-03-01T21:20:24-07:00
by fmw42
With IM 7, the correct command is magick, not convert. Try

Code: Select all

magick -delay 15x100 input.gif output.gif
If that fails, post your input gif

Re: convert delay error

Posted: 2018-03-01T21:43:24-07:00
by LockStock
Thanks very much, I was not aware of the change. That has fixed the issue.

Re: [Solved] convert delay error

Posted: 2018-03-01T22:16:02-07:00
by fmw42
Here are the docs explaining the changes. http://imagemagick.org/script/porting.php#cli