Commit 69aeda7c by aboutqx Committed by Mike Burns

Update processor.rb

parent 9372948f
...@@ -37,21 +37,13 @@ module Paperclip ...@@ -37,21 +37,13 @@ module Paperclip
# The convert method runs the convert binary with the provided arguments. # The convert method runs the convert binary with the provided arguments.
# See Paperclip.run for the available options. # See Paperclip.run for the available options.
def convert(arguments = "", local_options = {}) def convert(arguments = "", local_options = {})
if Gem.win_platform? Paperclip.run(Gem.win_platform?"magick convert":"convert", arguments, local_options)
Paperclip.run("magick convert", arguments, local_options)
else
Paperclip.run("convert", arguments, local_options)
end
end end
# The identify method runs the identify binary with the provided arguments. # The identify method runs the identify binary with the provided arguments.
# See Paperclip.run for the available options. # See Paperclip.run for the available options.
def identify(arguments = "", local_options = {}) def identify(arguments = "", local_options = {})
if Gem.win_platform? Paperclip.run(Gem.win_platform?"magick identify":"identify", arguments, local_options)
Paperclip.run("magick identify", arguments, local_options)
else
Paperclip.run("identify", arguments, local_options)
end
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment