Bug #72604 [Asn]: imagearc() ignores thickness for full arcs

From: Date: Fri, 15 Jul 2016 17:21:59 +0000
Subject: Bug #72604 [Asn]: imagearc() ignores thickness for full arcs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202355@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 Type: Bug Package: GD related Operating System: * PHP Version: 7.1.0alpha3 Assigned To: cmb Block user comment: N Private report: N New Comment: This bug does not affect external libgd, which does not use the gdImageEllipse() optimization. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#202355) next »