php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72604 imagearc() ignores thickness for full arcs
Submitted: 2016-07-15 17:20 UTC Modified: 2016-07-15 17:21 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: GD related
PHP Version: 7.1.0alpha3 OS: *
Private report: No CVE-ID: None
 [2016-07-15 17:20 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-15 17:21 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-07-15 17:21 UTC] cmb@php.net
This bug does not affect external libgd, which does not use the
gdImageEllipse() optimization.
 [2016-07-15 18:14 UTC] cmb@php.net
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
 [2016-07-15 18:14 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-10-17 10:11 UTC] bwoebi@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC