load-frames.scm

I’ve played with creating animations in POV-Ray, and it’s pretty easy, except that each frame of the image gets written to a separate file. I figured it would be easy to find a tool that smooshed all the frames together into an animated GIF, but I was surprised when I couldn’t find a free tool that did this simple job.

The Gimp is a great image manipulation tool, and will write an image with multiple layers to an animated GIF, where each layer is a new frame. So I wrote this script to load the separate image files into layers in Gimp.

This script works under the Windows version of Gimp, and I see no reason why it shouldn’t run on other platforms as well. Copy the script to your script directory (see the Gimp help for help), and it will appear as the Xtns - Script-fu - Utils - Load Frames.. command.

Download: load-frames.scm

Comments

[gravatar]
There is a bug in the script.

the line: (set! imgnum 2)
should be: (set! imgnum firstn)

Otherwise, great script! It saved me
alot of time.
[gravatar]
Amazing script (with the fix by James). Saved me a ton of time as well.

Thanks for taking the time to write a script and sharing it with the rest of the community.
[gravatar]
Jose Miguel Pasini 3:35 PM on 15 May 2005
Actually, to fix the bug the line should read

(set! imgnum (+ firstn 1))

If not, the first image is repeated.

This script was exactly what I was looking for.

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.