#47947 [NEW]: Documentation error for imagerotate()
| From: | jonatan dot olofsson at gmail dot com | Date: | Fri, 10 Apr 2009 20:34:04 +0000 |
| Subject: | #47947 [NEW]: Documentation error for imagerotate() | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2093@lists.php.net to get a copy of this message | ||
From: jonatan dot olofsson at gmail dot com
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Documentation error for imagerotate()
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 bug report at http://bugs.php.net/?id=47947&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47947&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47947&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47947&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47947&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47947&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47947&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47947&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47947&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47947&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47947&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47947&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47947&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47947&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47947&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47947&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47947&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47947&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47947&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47947&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47947&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47947&r=mysqlcfg