Bug #81315 [Opn->Dup]: imagefilledellipse - draws strange shape in large size

From: Date: Fri, 30 Jul 2021 22:06:39 +0000
Subject: Bug #81315 [Opn->Dup]: imagefilledellipse - draws strange shape in large size
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235497@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81315&edit=1 ID: 81315 Updated by: cmb@php.net Reported by: chzhdy at live dot com Summary: imagefilledellipse - draws strange shape in large size -Status: Open +Status: Duplicate Type: Bug Package: GD related Operating System: Windows 10 21H1 PHP Version: 8.0.9 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This is a duplicate of bug #51498. Previous Comments: ------------------------------------------------------------------------ [2021-07-30 18:00:01] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81315&edit=1

« previous php.bugs (#235497) next »