# File lib/dragonfly/image_magick/analyser.rb, line 16 def aspect_ratio(temp_object) attrs = identify(temp_object) attrs[:width].to_f / attrs[:height] end
# File lib/dragonfly/image_magick/analyser.rb, line 33 def depth(temp_object) identify(temp_object)[:depth] end
# File lib/dragonfly/image_magick/analyser.rb, line 43 def format(temp_object) identify(temp_object)[:format] end
# File lib/dragonfly/image_magick/analyser.rb, line 12 def height(temp_object) identify(temp_object)[:height] end
# File lib/dragonfly/image_magick/analyser.rb, line 47 def image?(temp_object) !!catch(:unable_to_handle){ identify(temp_object) } end
# File lib/dragonfly/image_magick/analyser.rb, line 27 def landscape?(temp_object) attrs = identify(temp_object) attrs[:width] >= attrs[:height] end
# File lib/dragonfly/image_magick/analyser.rb, line 37 def number_of_colours(temp_object) details = raw_identify(temp_object, '-verbose -unique') details[/Colors: (\d+)/, 1].to_i end
# File lib/dragonfly/image_magick/analyser.rb, line 21 def portrait?(temp_object) attrs = identify(temp_object) attrs[:width] <= attrs[:height] end
Generated with the Darkfish Rdoc Generator 2.