|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-24 20:03 UTC] blyon at blyon dot com
[2012-06-07 11:40 UTC] merlijn at bntnederland dot nl
[2015-01-22 13:16 UTC] luke at woollysheep dot net
[2015-04-08 09:10 UTC] gimli2 at gmail dot com
[2015-07-11 17:11 UTC] cmb@php.net
-Status: Open
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2015-07-11 17:11 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Description: ------------ On a system of Window XP, PHP/5.3.0 and GD 2.0.34 the imageellipse() function fails to draw a circle properly when dealing with large dimensions. Calling the function for a circle with radius over 1032 pixels (an ellipse with equal width and height over 2064 pixels) creates a deformed circle with bumps in four directions. Increasing the dimensions makes things worse. On a system of Linux, PHP/5.2.13 and GD 2.0.34 the issue does not appear. Test script: --------------- <?php header ("Content-type: image/png"); $im = imagecreatetruecolor(2200, 2200) or die("Cannot Initialize new GD image stream"); imagefill($im, 0, 0, imagecolorallocate($im, 255, 255, 255)); imageellipse($im, 1100, 1100, 2064, 2064, imagecolorallocate($im, 0, 0, 255)); imagepng($im); imagedestroy($im); ?> Expected result: ---------------- A relatively smooth circle is drawn. Actual result: -------------- The resulting circle has irregular bumps in it.