Bug #73614 [Ana->Csd]: gdImageFilledArc() doesn't properly draw pies
| From: | cmb@php.net | Date: | Wed, 16 Jan 2019 19:24:18 +0000 |
| Subject: | Bug #73614 [Ana->Csd]: gdImageFilledArc() doesn't properly draw pies | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219019@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73614&edit=1
ID: 73614
Updated by: cmb@php.net
Reported by: vrp76 at mail dot ru
Summary: gdImageFilledArc() doesn't properly draw pies
-Status: Analyzed
+Status: Closed
Type: Bug
Package: GD related
Operating System: Windows Vista HomePremium 32 SP2
PHP Version: 7.0.13
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=61cfa34e1194b5a026548508f9f34d6f6a8774da
Log: Fix #73614: gdImageFilledArc() doesn't properly draw pies
Previous Comments:
------------------------------------------------------------------------
[2019-01-16 18:44:41] cmb@php.net
Related To: Bug #77460
------------------------------------------------------------------------
[2019-01-16 18:41:50] cmb@php.net
The bug has just been fixed in upstream.
------------------------------------------------------------------------
[2017-01-26 11:43:38] cmb@php.net
Related To: Bug #74001
------------------------------------------------------------------------
[2016-11-27 15:56:30] cmb@php.net
I can confirm the issue (however, the expected and actual results
are swapped above).
As this is a libgd issue, I've forwared to
<https://github.com/libgd/libgd/issues/351>,
and suspend this
ticket until the bug is fixed in libgd.
------------------------------------------------------------------------
[2016-11-27 08:15:24] vrp76 at mail dot ru
Description:
------------
Wrong draws filled arcs.
Test script:
---------------
<?php
$image = imagecreatetruecolor(500, 500);
$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$navy = imagecolorallocate($image, 0x00, 0x00, 0x80);
$red = imagecolorallocate($image, 0xFF, 0x00, 0x00);
imagefilledarc($image, 250, 250, 500, 250, 0, 88, $white, IMG_ARC_PIE);
imagefilledarc($image, 250, 250, 500, 250, 88, 91 , $navy, IMG_ARC_PIE);
imagefilledarc($image, 250, 250, 500, 250, 91, 360 , $red, IMG_ARC_PIE);
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
Expected result:
----------------
https://www.dropbox.com/s/s1pby0zutsajbed/Pie1.png?dl=0
Actual result:
--------------
https://www.dropbox.com/s/68l645wakutl3n0/Pie2.png?dl=0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73614&edit=1