Sets the image orientation.
Image
Orientation type
Sets the image orientation.
Parameters
orientationintOne of the orientation constants
//Doesn't appear to do anything
function setImageOrientation($imagePath, $orientationType)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->setImageOrientation($orientationType);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}