WP_Image_Editor_Imagick::maybe_exif_rotate

SummerySummery

Check if a JPEG image has EXIF Orientation tag and rotate it if needed.

Syntax

WP_Image_Editor_Imagick::maybe_exif_rotate()

DescriptionDescription

As ImageMagick copies the EXIF data to the flipped/rotated image, proceed only if EXIF Orientation can be reset afterwards.

ReturnReturn

(bool|WP_Error) True if the image was rotated. False if no EXIF data or if the image doesn't need rotation. WP_Error if error while rotating.

SourceSource

File: wp-includes/class-wp-image-editor-imagick.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Introduced.
Scroll to Top