2014-12-01 99 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