Commit 9372948f by aboutqx Committed by Mike Burns

Update geometry_detector_factory.rb

parent 029460ec
...@@ -16,13 +16,8 @@ module Paperclip ...@@ -16,13 +16,8 @@ module Paperclip
begin begin
orientation = Paperclip.options[:use_exif_orientation] ? orientation = Paperclip.options[:use_exif_orientation] ?
"%[exif:orientation]" : "1" "%[exif:orientation]" : "1"
if Gem.win_platform?
command = "magick identify"
else
command = "identify"
end
Paperclip.run( Paperclip.run(
command, Gem.win_platform?"magick identify":"identify",
"-format '%wx%h,#{orientation}' :file", { "-format '%wx%h,#{orientation}' :file", {
:file => "#{path}[0]" :file => "#{path}[0]"
}, { }, {
......
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