Imagick::setImageOrientation

画像の方向を設定する

説明

public bool Imagick::setImageOrientation(int $orientation)

画像の方向を設定します。

パラメータ

orientation

方向定数 のいずれか。

戻り値

成功した場合に true を返します。

例1 Imagick::setImageOrientation

<?php
//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();
}

?>