Convert multiple images passed through stdin into gif with -delay attribute
Posted: 2019-02-01T11:14:52-07:00
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 . 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!
Code: Select all
magick - gif:-
Thank you!