php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 21 = ?
Subscribe to this entry?

 
 [2021-07-30 18:00 UTC] chzhdy at live dot com
Description:
------------
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');
imagepng($im);

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

Actual result:
--------------
imagefilledellipse() draws a strange shape.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-30 22:06 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2021-07-30 22:06 UTC] cmb@php.net
This is a duplicate of bug #51498.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC