update : 2015.11.03
php.shukuma.com

검색:
 
 
Sets the image orientation

Imagick::setImageOrientation

(PECL imagick 2.0.0)

Imagick::setImageOrientationSets the image orientation

설명

bool Imagick::setImageOrientation ( int $orientation )

Sets the image orientation.

인수

orientation

One of the orientation constants

반환값

성공시에 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();
}

?>