Commit 05a4741b by aboutqx Committed by Mike Burns

Update processor.rb

parent e6a60e22
......@@ -37,13 +37,21 @@ module Paperclip
# The convert method runs the convert binary with the provided arguments.
# See Paperclip.run for the available options.
def convert(arguments = "", local_options = {})
Paperclip.run('convert', arguments, local_options)
if Gem.win_platform?
Paperclip.run('magick convert', arguments, local_options)
else
Paperclip.run('convert', arguments, local_options)
end
end
# The identify method runs the identify binary with the provided arguments.
# See Paperclip.run for the available options.
def identify(arguments = "", local_options = {})
Paperclip.run('identify', arguments, local_options)
if Gem.win_platform?
Paperclip.run('magick identify', arguments, local_options)
else
Paperclip.run('identify', arguments, local_options)
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