note 111447 added to imagick.setimageorientation
| From: | orrd101 at yahoo dot com | Date: | Wed, 20 Feb 2013 21:20:38 +0000 |
| Subject: | note 111447 added to imagick.setimageorientation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193704@lists.php.net to get a copy of this message | ||
Be aware that Imagick::setImageOrientation() doesn't actually rotate the image, it just changes
the EXIF rotation info that will be saved with the image. In some cases that may be what you want to
do, but if you're trying to rotate an image, this probably isn't the way you want to do
it. The problem with relying on the EXIF rotation info is that many web browsers ignore and some
image viewing software ignore the EXIF information and don't auto-rotate it automatically.
This function is best used to correct EXIF rotation information just before saving an image.
To actually rotate an image, use Imagick::rotateImage().
And then maybe use this function to save the correct EXIF orientation data. For example:
$image->setImageOrientation(imagick::ORIENTATION_TOPLEFT);
----
Server IP: 69.147.83.199
Probable Submitter: 99.88.245.232
----
Manual Page -- http://php.net/manual/en/imagick.setimageorientation.php
Edit -- https://master.php.net/note/edit/111447
Del: integrated -- https://master.php.net/note/delete/111447/integrated
Del: useless -- https://master.php.net/note/delete/111447/useless
Del: bad code -- https://master.php.net/note/delete/111447/bad+code
Del: spam -- https://master.php.net/note/delete/111447/spam
Del: non-english -- https://master.php.net/note/delete/111447/non-english
Del: in docs -- https://master.php.net/note/delete/111447/in+docs
Del: other reasons-- https://master.php.net/note/delete/111447
Reject -- https://master.php.net/note/reject/111447
Search -- https://master.php.net/manage/user-notes.php