class Paperclip::Thumbnail
def identified_as_animated?
def identified_as_animated? if @identified_as_animated.nil? @identified_as_animated = ANIMATED_FORMATS.include? identify("-format %m :file", :file => "#{@file.path}[0]").to_s.downcase.strip end @identified_as_animated rescue Cocaine::ExitStatusError => e raise Paperclip::Error, "There was an error running `identify` for #{@basename}" if @whiny rescue Cocaine::CommandNotFoundError => e raise Paperclip::Errors::CommandNotFoundError.new("Could not run the `identify` command. Please install ImageMagick.") end