Filters the `$orientation` value to correct it before rotating or to prevent rotating the image.
$orientation, $this->file
Sortie :
@param int $orientation EXIF Orientation value as retrieved from the image file. @param string $file Path to the image file.
// Modifier la valeur avec le filtre 'wp_image_maybe_exif_rotate'
add_filter('wp_image_maybe_exif_rotate', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($orientation) {
// Modifier la valeur
return $orientation;
}
Chargement des actualités...