Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created July 25, 2012 15:25
Show Gist options
  • Save kejadlen/3176768 to your computer and use it in GitHub Desktop.
Save kejadlen/3176768 to your computer and use it in GitHub Desktop.
anim = Magick::ImageList.new(*Dir["/some/path/*.jpg"])
anim.each {|img| img.resize!(200,200) }
anim.delay = 10
anim.unshift Magick::Image.read("/some/image.jpg")[0].resize(200,200)
anim << Magick::Image.read("/some/other/image.jpg")[0].resize(200,200)
anim.write("animated.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment