Bug #78133 [Opn]: Can't draw big ellipse
| From: | cmb@php.net | Date: | Mon, 10 Jun 2019 21:03:26 +0000 |
| Subject: | Bug #78133 [Opn]: Can't draw big ellipse | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221208@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78133&edit=1
ID: 78133
Updated by: cmb@php.net
Reported by: jkarczm at gmail dot com
Summary: Can't draw big ellipse
Status: Open
Type: Bug
Package: GD related
Operating System: Windows
PHP Version: 7.3.6
Block user comment: N
Private report: N
New Comment:
This looks like a duplicate of bug #51498.
Previous Comments:
------------------------------------------------------------------------
[2019-06-08 17:19:26] jkarczm at gmail dot com
Description:
------------
imagefilledellipse draws a distorted shape when the size is big enough
Test script:
---------------
// Ellipse looks fine - size 500x500
$image = imagecreatetruecolor(500, 500);
$color = imagecolorallocate($image, 255, 0, 0);
imagefilledellipse($image, 250, 250, 500, 500, $color);
imagepng($image, 'D:/pass.png');
imagedestroy($image);
// Ellipse is distorted - size 5000x5000
$image = imagecreatetruecolor(5000, 5000);
$color = imagecolorallocate($image, 255, 0, 0);
imagefilledellipse($image, 2500, 2500, 5000, 5000, $color);
imagepng($image, 'D:/fail.png');
imagedestroy($image);
Expected result:
----------------
Ellipse should look like ellipse
Actual result:
--------------
Ellipse is distorted
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78133&edit=1