Php/docs/imagick.setimageorientation

提供:Dev Guides
< Php
2020年12月14日 (月) 09:29時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

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