On this page
apply_filters( 'wp_image_maybe_exif_rotate', int $orientation, string $file )
Filters the $orientation value to correct it before rotating or to prevent rotating the image.
Parameters
$orientationint-
EXIF Orientation value as retrieved from the image file.
$filestring-
Path to the image file.
Source
File: wp-includes/class-wp-image-editor.php. View all references
$orientation = apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file );
Related
Used By
| Used By | Description |
|---|---|
| WP_Image_Editor::maybe_exif_rotate() wp-includes/class-wp-image-editor.php | Check if a JPEG image has EXIF Orientation tag and rotate it if needed. |
Changelog
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_image_maybe_exif_rotate