diff --git a/lib/paperclip/geometry_detector_factory.rb b/lib/paperclip/geometry_detector_factory.rb index d4765d999..a6e5282d8 100644 --- a/lib/paperclip/geometry_detector_factory.rb +++ b/lib/paperclip/geometry_detector_factory.rb @@ -17,7 +17,7 @@ def geometry_string orientation = Paperclip.options[:use_exif_orientation] ? "%[exif:orientation]" : "1" Paperclip.run( - (Gem.win_platform?)?"magick identify":"identify", + Gem.win_platform? ? "magick identify" : "identify", "-format '%wx%h,#{orientation}' :file", { :file => "#{path}[0]" }, {