
Embed PNG sequence as an embedded looping animation in the final PDF The frame rate (frames per second), to be passed as an argument to the \animategraphics command below, is found by dividing the number after x by the number in front of it:įrame rate = 100 (tics/s) / 10 (tics/frame) = 10 frames/sģ. This outputs lines (one for every frame) like: Delay: 10x100 Users of Windows may want to run magick identify -verbose something.gif | sls -Pattern 'Delay' Get original animation speed magick identify -verbose something.gif | grep 'Delay' , something-16.png (Here, the original GIF, renamed to something.gif consists of 17 frames.) Option -coalesce is necessary to undo a possible optimization of the original GIF file.Ģ. This produces a set of numbered PNG files something-0.png.


The command name depends on the software version. Or magick convert -coalesce something.gif something.pngĬonvert/ magick convert is a command line tool from the software package. Convert and split animated GIF into PNG sequence convert -coalesce something.gif something.png
