Class: ImageVise::AutoOrient

Inherits:
Object
  • Object
show all
Defined in:
lib/image_vise/operators/auto_orient.rb

Overview

Applies ImageMagick auto_orient to the image, so that i.e. mobile photos can be oriented correctly. The operation is applied destructively (changes actual pixel data)

The corresponding Pipeline method is ‘auto_orient`.

Instance Method Summary collapse

Instance Method Details

#apply!(magick_image) ⇒ Object



6
7
8
# File 'lib/image_vise/operators/auto_orient.rb', line 6

def apply!(magick_image)
  magick_image.auto_orient!
end