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 9372948 commit 69aeda7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/paperclip/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,13 @@ 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 = {})
if Gem.win_platform?
Paperclip.run("magick convert", arguments, local_options)
else
Paperclip.run("convert", arguments, local_options)
end
Paperclip.run(Gem.win_platform?"magick convert":"convert", arguments, local_options)
end

# The identify method runs the identify binary with the provided arguments.
# See Paperclip.run for the available options.
def identify(arguments = "", local_options = {})
if Gem.win_platform?
Paperclip.run("magick identify", arguments, local_options)
else
Paperclip.run("identify", arguments, local_options)
end
Paperclip.run(Gem.win_platform?"magick identify":"identify", arguments, local_options)
end
end
end

0 comments on commit 69aeda7

Please sign in to comment.