Php/docs/imagick.setimageorientation

提供:Dev Guides
< Php
移動先:案内検索

Imagick::setImageOrientation

(PECL imagick 2, PECL imagick 3)

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


説明

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

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


パラメータ

orientation
方向定数 のいずれか。


返り値

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


例1 Imagick::setImageOrientation()

<?php//Doesn't appear to do anythingfunction setImageOrientation($imagePath, $orientationType) {    $imagick = new \Imagick(realpath($imagePath));    $imagick->setImageOrientation($orientationType);    header("Content-Type: image/jpg");    echo $imagick->getImageBlob();}?>