Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting frames from GIF

I am trying to use Applescript or Terminal (or terminal via applescript using the do shell script command) to automatically extract the frames from a selected .gif file. I know how to do the click and drag method using Preview.app, but is there a way to do this automatically?

Thanks! Eric

like image 987
user3541125 Avatar asked Oct 27 '14 08:10

user3541125


1 Answers

ImageMagick gives you a cmdlet that lets extract frames of an animated gif.

This will extract the first 10 frames of the file "animated.gif"

# convert 'animated.gif[0-10]' frames%03d.png
like image 157
deepb1ue Avatar answered Oct 19 '22 21:10

deepb1ue