//Doesn't appear to do anything
function setImageOrientation($image_path, $orientationType)
{
$imagick = new \Imagick(realpath($image_path));
$imagick->setImageOrientation($orientationType);
header("Content-Type: image/jpeg");
echo $imagick->getImageBlob();
}