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

Commit

Permalink
Update geometry_detector_factory.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 029460e commit 9372948
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/paperclip/geometry_detector_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@ def geometry_string
begin
orientation = Paperclip.options[:use_exif_orientation] ?
"%[exif:orientation]" : "1"
if Gem.win_platform?
command = "magick identify"
else
command = "identify"
end
Paperclip.run(
command,
Gem.win_platform?"magick identify":"identify",
"-format '%wx%h,#{orientation}' :file", {
:file => "#{path}[0]"
}, {
Expand Down

0 comments on commit 9372948

Please sign in to comment.