Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Update processor.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutqx authored and mike-burns committed May 25, 2018
1 parent e6a60e2 commit 05a4741
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/paperclip/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ def self.make file, options = {}, attachment = nil
# 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

0 comments on commit 05a4741

Please sign in to comment.