Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to tell if an image is animated using rmagick
require 'rmagick'
img_list = Magick::ImageList.new('http://i.imgur.com/Txjn52a.gif')
p img_list.size
img_list = Magick::ImageList.new('http://i.imgur.com/UthfKGQ.jpg')
p img_list.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment