Bug #78133 [Opn->Dup]: Can't draw big ellipse

From: Date: Tue, 11 Jun 2019 09:10:52 +0000
Subject: Bug #78133 [Opn->Dup]: Can't draw big ellipse
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221213@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 +Status: Duplicate Type: Bug Package: GD related Operating System: Windows PHP Version: 7.3.6 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This issue has also been reported upstream[1], and has been marked as duplicate there, so I'm also marking as duplicate of bug #51498 here. [1] <https://github.com/libgd/libgd/issues/502> Previous Comments: ------------------------------------------------------------------------ [2019-06-10 21:03:24] cmb@php.net This looks like a duplicate of bug #51498. ------------------------------------------------------------------------ [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

« previous php.bugs (#221213) next »