(PECL imagick 2, PECL imagick 3)
Imagick::setImageOrientation — Configure l'orientation de l'image
$orientation): boolConfigure l'orientation de l'image.
   Retourne true en cas de succès.
  
Exemple #1 Exempe avec Imagick::setImageOrientation()
<?php
function setImageOrientation($imagePath, $orientationType) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->setImageOrientation($orientationType);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}
?>