From 993b0b1f2b71d985b02f7a51d123ab578b16ae2a Mon Sep 17 00:00:00 2001 From: aboutqx <1004945442@qq.com> Date: Mon, 31 Oct 2016 16:02:44 +0800 Subject: [PATCH] Update geometry_detector_factory.rb --- lib/paperclip/geometry_detector_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/geometry_detector_factory.rb b/lib/paperclip/geometry_detector_factory.rb index 1f1ec290d..d4765d999 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]" }, {