Advertisement

Summery Summery

Filters the $orientation value to correct it before rotating or to prevemnt rotating the image.

Syntax Syntax

apply_filters( 'wp_image_maybe_exif_rotate', int $orientation, string $file )

Parameters Parameters

$orientation

EXIF Orientation value as retrieved from the image file.

$file

Path to the image file.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply