module GraphicsMagick::Utilities::Identify
Public Instance Methods
height()
click to toggle source
# File lib/graphicsmagick/utilities/identify.rb, line 9 def height get_identity.strip.split('x')[1].to_i end
width()
click to toggle source
# File lib/graphicsmagick/utilities/identify.rb, line 5 def width get_identity.strip.split('x')[0].to_i end
Private Instance Methods
composite_requires_output_file?()
click to toggle source
# File lib/graphicsmagick/utilities/identify.rb, line 15 def composite_requires_output_file? false end
get_identity()
click to toggle source
# File lib/graphicsmagick/utilities/identify.rb, line 19 def get_identity @identity ||= `gm identify -ping -format '%wx%h' #{path}` end