Page 1 of 1

Convert multiple images passed through stdin into gif with -delay attribute

Posted: 2019-02-01T11:14:52-07:00
by jonathancm
Hi! I'm trying to convert a series of images stored in memory into a gif without persisting anything to disk. I've managed to do this by converting each image into a miff, then concatenating the results of those together, and then passing the concatenated output into

Code: Select all

magick - gif:-
. This works, but adding a -delay attribute does nothing. I'm getting around this by duplicating the miff data for each image a number of times before combining it with the others, but this seems inefficient. Is there a better way to do the thing I'm doing? (Not at all opposed to using interfaces, particularly IMagick since I'm currently using PHP, if that would make this more doable)

Thank you!

Re: Convert multiple images passed through stdin into gif with -delay attribute

Posted: 2019-02-01T14:01:48-07:00
by fmw42
What OS? What version of Imagemagick? I do not see your commands that convert the images to MIFF. Perhaps you should show your full processing commands. Are you trying to add a delay to a single gif one at a time or to (create) an animated gif?