note 74299 added to function.imagerotate
| From: | vjoh at seznam dot cz | Date: | Wed, 04 Apr 2007 06:35:47 +0000 |
| Subject: | note 74299 added to function.imagerotate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125075@lists.php.net to get a copy of this message | ||
"The center of rotation is the center of the image, and the rotated image is scaled down so
that the whole rotated image fits in the destination image - the edges are not clipped."
This statement seems to be incorrect and can lead to confusion. If fact, no rescaling happens, the
rotated image is given the exact size needed to accomodate the whole source image no matter what was
the rotation angle.
Actually if the imagerotate function would work as described in this manual it would be pretty
uncomfortable - there should be at least an optional parameter determining whether to scale down or
not (since it still might be useful in some situations).
It's possible that this functionality has been changed during the PHP development while the
manual wasn't updated accordingly (tested with PHP version 4.4.1 and the bundled DG lib ver.
2.0.28).
----
Server IP: 64.71.164.2
Probable Submitter: 68.126.61.214
----
Manual Page -- http://www.php.net/manual/en/function.imagerotate.php
Edit -- https://master.php.net/note/edit/74299
Del: integrated -- https://master.php.net/note/delete/74299/integrated
Del: useless -- https://master.php.net/note/delete/74299/useless
Del: bad code -- https://master.php.net/note/delete/74299/bad+code
Del: spam -- https://master.php.net/note/delete/74299/spam
Del: non-english -- https://master.php.net/note/delete/74299/non-english
Del: in docs -- https://master.php.net/note/delete/74299/in+docs
Del: other reasons-- https://master.php.net/note/delete/74299
Reject -- https://master.php.net/note/reject/74299
Search -- https://master.php.net/manage/user-notes.php