lib/bulldog/processor/image_magick.rb in bulldog-0.0.6 vs lib/bulldog/processor/image_magick.rb in bulldog-0.0.7

- old
+ new

@@ -2,17 +2,14 @@ module Bulldog module Processor class ImageMagick < Base class << self - attr_accessor :convert_command - attr_accessor :identify_command + attr_accessor :convert_path + attr_accessor :identify_path end - self.convert_command = Bulldog.find_in_path('convert') - self.identify_command = Bulldog.find_in_path('identify') - def initialize(*args) super @tree = ArgumentTree.new(styles) end @@ -117,10 +114,10 @@ @tree.output(style, path) end end def run_convert_command - command = [self.class.convert_command, "#{input_file}[0]", *@tree.arguments].flatten + command = [self.class.convert_path, "#{input_file}[0]", *@tree.arguments].flatten output = Bulldog.run(*command) or record.errors.add name, "convert failed (status #$?)" output end