module ImageMagick::Identify::Command
Public Class Methods
execute(file_path)
click to toggle source
# File lib/imagemagick/identify/command.rb, line 9 def self.execute(file_path) command = "#{path_to_identify} -verbose -unique #{file_path.inspect}" `#{command}` end
Private Class Methods
path_to_identify()
click to toggle source
# File lib/imagemagick/identify/command.rb, line 16 def self.path_to_identify Which.which("identify").tap{ |path| raise CommandNotFoundException, "ImageMagick command 'identify' not found!" unless path } end