|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81315 imagefilledellipse - draws strange shape in large size
Submitted: 2021-07-30 18:00 UTC Modified: 2021-07-30 22:06 UTC
From: chzhdy at live dot com Assigned: cmb (profile)
Status: Duplicate Package: GD related
PHP Version: 8.0.9 OS: Windows 10 21H1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chzhdy at live dot com
New email:
PHP Version: OS:


 [2021-07-30 18:00 UTC] chzhdy at live dot com
When the size of ellipse is larger than about 2200px, imagefilledellipse() will start to draw a strange shape. It seems that the problem only happens to "PHP for Windows", because the script works well on my Ubuntu Server.

[PHP Version]
PHP 8.0 (8.0.9) for Windows - VS16 x64 Non Thread Safe (2021-Jul-29 14:38:16)

Test script:
$w = 3000;
$h = 3000;
$im = imagecreatetruecolor($w, $h);
$color = imagecolorallocate($im, 0, 124, 255);
imagefilledellipse($im, $w / 2, $h / 2, $w, $h, $color);
header('content-type: image/png');

Expected result:
imagefilledellipse() can draw an ellipse while the size is large.

Actual result:
imagefilledellipse() draws a strange shape.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-30 22:06 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2021-07-30 22:06 UTC]
This is a duplicate of bug #51498.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 14:01:28 2024 UTC