ruby on rails - How to tell if GIF is animated? -


i have rails app paperclip image uploads -- how check if image animated gif rmagick?

you can count scenes associated image. in rmagick means doing this:

image = magick::imagelist.new(image_file)  if image.scene == 0   #this not animated gif else   #this animated gif end 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

python - More Issues with overlapping labels in Tkinter -