wp_image_maybe_exif_rotate

FILTER wp-includes\class-wp-image-editor.php (ligne 505) github
Filters the `$orientation` value to correct it before rotating or to prevent rotating the image.

Paramètres

Entrée :
$orientation, $this->file
Sortie :
@param int    $orientation EXIF Orientation value as retrieved from the image file.
@param string $file        Path to the image file.

Utilisation

// 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;
}

Actualités

Chargement des actualités...