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 037b975 commit 5d9b2ba
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(Gem.win_platform ? "magick convert" : "convert", arguments, local_options)
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 = {})
Paperclip.run(Gem.win_platform? ? "magick identify" : "identify", arguments, local_options)
Paperclip.run(
Gem.win_platform? ? "magick identify" : "identify",
arguments,
local_options
)
end
end
end

0 comments on commit 5d9b2ba

Please sign in to comment.