2014-12-01 188 views

回答

3

您可以计算与图像关联的scenes。在Rmagick这意味着要做这样的事情:

image = Magick::ImageList.new(image_file) 

if image.scene == 0 
    #this is not an animated gif 
else 
    #this is an animated gif 
end 
+0

可能你的意思是'图像='' – trushkevich 2014-12-02 06:42:23