Imagick::setImageOrientation

(PECL imagick 2, PECL imagick 3)

Imagick::setImageOrientation画像の方向を設定する

説明

publicImagick::setImageOrientation(int$orientation): bool

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

パラメータ

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

?>
To Top