Method: Magick::Image#auto_orient!

Defined in:
ext/RMagick/rmimage.cpp

#auto_orient!Magick::Image?

Rotates or flips the image based on the image’s EXIF orientation tag. Note that only some models of modern digital cameras can tag an image with the orientation. If the image does not have an orientation tag, or the image is already properly oriented, then #auto_orient! returns nil.

Returns:

  • (Magick::Image, nil)

    nil if the image is already properly oriented, otherwise self

See Also:



1310
1311
1312
1313
1314
1315
# File 'ext/RMagick/rmimage.cpp', line 1310

VALUE
Image_auto_orient_bang(VALUE self)
{
    rm_check_frozen(self);
    return auto_orient(True, self);
}