#42685 [Com]: imagefilledellipse wrong size
| From: | andrew at ameshome dot ca | Date: | Fri, 27 Mar 2009 18:01:38 +0000 |
| Subject: | #42685 [Com]: imagefilledellipse wrong size | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135216@lists.php.net to get a copy of this message | ||
ID: 42685
Comment by: andrew at ameshome dot ca
Reported By: chinhnt2k3 at yahoo dot com
Status: No Feedback
Bug Type: GD related
Operating System: *
PHP Version: 5.2.4
Assigned To: pajoye
New Comment:
I can confirm this still occurs in PPH 5.2.9-1
An elipse with an even size is rounded to an odd size
Previous Comments:
------------------------------------------------------------------------
[2008-11-10 01:00:05] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-11-02 13:04:02] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-05-06 11:28:31] kalle@php.net
The same effect occurs for the imageellipse(), I belive this bug is in
libgd
------------------------------------------------------------------------
[2007-09-17 04:41:13] chinhnt2k3 at yahoo dot com
Description:
------------
imagefilledellipse() produces an ellipse with a different size if the
size is even.
Reproduce code:
---------------
<?php
$image = imagecreatetruecolor(200, 200);
$color = imagecolorallocate($image, 255, 255, 255);
imagefilledellipse($image, 100, 100, 26, 26, $color);
header("Content-type: image/png");
imagepng($image);
?>
Expected result:
----------------
An ellipse with the size of 26.
Actual result:
--------------
An ellipse with the size of 27.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42685&edit=1