Commit e6a60e22 by aboutqx Committed by Mike Burns

Update geometry_detector_factory.rb

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