#47947 [Opn->Csd]: Documentation error for imagerotate()
ID: 47947
Updated by: fa@php.net
Reported By: jonatan dot olofsson at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-04-10 20:34:04] jonatan dot olofsson at gmail dot com
Description:
------------
Quote from manual for imagerotate(): "and the rotated image is scaled
down so that the whole rotated image fits in the destination image"
The rotated image is in fact not scaled down, but the function returns
an image with dimensions to fit the image (also, the reference to a
destination image seems out of place, since no destination image is
specified)
Reproduce code:
---------------
$wrk = imagecreatetruecolor(100,100);
$wrk = imagerotate($wrk, 45, -1);
var_dump(imagesx($wrk), imagesy($wrk));
Expected result:
----------------
int(100) int(100)
Actual result:
--------------
int(142) int(142)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47947&edit=1
Thread (2 messages)