Skip to content

Instantly share code, notes, and snippets.

@mmb
Created December 2, 2014 05:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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