From 57cc6f40309f919dfb30fe63f6d663f6ccaf7856 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Wed, 31 Jan 2018 16:50:30 -0500 Subject: Correct orientation detection --- activestorage/lib/active_storage/analyzer/image_analyzer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/lib/active_storage') diff --git a/activestorage/lib/active_storage/analyzer/image_analyzer.rb b/activestorage/lib/active_storage/analyzer/image_analyzer.rb index 7342178eff..3b39de91be 100644 --- a/activestorage/lib/active_storage/analyzer/image_analyzer.rb +++ b/activestorage/lib/active_storage/analyzer/image_analyzer.rb @@ -39,7 +39,7 @@ module ActiveStorage end def rotated_image?(image) - %w[ RightTop LeftBottom ].include?(image["orientation"]) + %w[ RightTop LeftBottom ].include?(image["%[orientation]"]) end end end -- cgit v1.2.3