Bug #72604 [Asn->Csd]: imagearc() ignores thickness for full arcs
| From: | cmb@php.net | Date: | Fri, 15 Jul 2016 18:14:02 +0000 |
| Subject: | Bug #72604 [Asn->Csd]: imagearc() ignores thickness for full arcs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202356@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72604&edit=1
ID: 72604
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: imagearc() ignores thickness for full arcs
-Status: Assigned
+Status: Closed
Type: Bug
Package: GD related
Operating System: *
PHP Version: 7.1.0alpha3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3666cfab973c5aba86d0562d14de8ed74e66cdb7
Log: Fix #72604: imagearc() ignores thickness for full arcs
Previous Comments:
------------------------------------------------------------------------
[2016-07-15 17:21:58] cmb@php.net
This bug does not affect external libgd, which does not use the
gdImageEllipse() optimization.
------------------------------------------------------------------------
[2016-07-15 17:20:07] cmb@php.net
Description:
------------
When full arcs are to be drawn (i.e. $start = 0 and $end = 360),
imagearc() calls gdImageEllipse() internally. However,
gdImageEllipse() does not yet support thickness, so the behavior
is inconsistent with partial arcs.
Test script:
---------------
<?php
$im = imagecreatetruecolor(100, 100);
imagesetthickness($im, 5);
imagearc($im, 50, 50, 90, 90, 0, 360, 0xffffff);
imagepng($im, '72603.png');
Expected result:
----------------
A thick arc.
Actual result:
--------------
A thin arc.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72604&edit=1