File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/active_storage/analyzer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def read_image
39
39
end
40
40
41
41
def rotated_image? ( image )
42
- %w[ RightTop LeftBottom ] . include? ( image [ "orientation" ] )
42
+ %w[ RightTop LeftBottom ] . include? ( image [ "%[ orientation] " ] )
43
43
end
44
44
end
45
45
end
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ class ActiveStorage::Analyzer::ImageAnalyzerTest < ActiveSupport::TestCase
18
18
blob = create_file_blob ( filename : "racecar_rotated.jpg" , content_type : "image/jpeg" )
19
19
metadata = extract_metadata_from ( blob )
20
20
21
- assert_equal 4104 , metadata [ :width ]
22
- assert_equal 2736 , metadata [ :height ]
21
+ assert_equal 2736 , metadata [ :width ]
22
+ assert_equal 4104 , metadata [ :height ]
23
23
end
24
24
25
25
test "analyzing an SVG image without an XML declaration" do
You can’t perform that action at this time.
0 commit comments