Imagick::setImageOrientation
(PECL imagick 2.0.0)
Imagick::setImageOrientation — Sets the image orientation
说明
Imagick::setImageOrientation (
int
$orientation
) :
bool
Sets the image orientation.
返回值
成功时返回 TRUE
。
范例
Example #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();
}
?>