array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'imagick.setimageorientation.php', 1 => 'Imagick::setImageOrientation', 2 => 'Sets the image orientation', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.setimageopacity.php', 1 => 'Imagick::setImageOpacity', ), 'next' => array ( 0 => 'imagick.setimagepage.php', 1 => 'Imagick::setImagePage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/setimageorientation.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::setImageOrientation

(PECL imagick 2, PECL imagick 3)

Imagick::setImageOrientationSets the image orientation

Beschreibung

public Imagick::setImageOrientation(int $orientation): bool

Sets the image orientation.

Parameter-Liste

orientation

One of the orientation constants

Rückgabewerte

Liefert true bei Erfolg.

Beispiele

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

?>