Method: Paperclip::Geometry#auto_orient
- Defined in:
- lib/paperclip/geometry.rb
#auto_orient ⇒ Object
Swaps the height and width if necessary
36 37 38 39 40 41 |
# File 'lib/paperclip/geometry.rb', line 36 def auto_orient if EXIF_ROTATED_ORIENTATION_VALUES.include?(@orientation) @height, @width = @width, @height @orientation -= 4 end end |