Bug #77460 [Opn]: Filled arc render (imagefilledarc) does not render from the correct degree.

From: Date: Tue, 15 Jan 2019 11:26:44 +0000
Subject: Bug #77460 [Opn]: Filled arc render (imagefilledarc) does not render from the correct degree.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218953@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77460&edit=1 ID: 77460 User updated by: p1100i at gmx dot com Reported by: p1100i at gmx dot com -Summary: Filled arc drawing does not use the correct degree. +Summary: Filled arc render (imagefilledarc) does not render from the correct degree. Status: Open Type: Bug Package: GD related Operating System: bionic / ArchLinux PHP Version: 7.3.1 Block user comment: N Private report: N New Comment: Improves title. Previous Comments: ------------------------------------------------------------------------ [2019-01-15 11:25:28] p1100i at gmx dot com Description: ------------ It seems the php-gd module which enables using imagefilledarc method cannot render in some degrees corecctly. * versions (format: distro: version) tested the issue on: * ubuntu-bionic: 7.2.10-0ubuntu0.18.04.1 * archlinux: 7.3.1 * for reproduction install php-gd and allow extension=gd in your php.ini Test script: --------------- <?php $image = imagecreatetruecolor(100, 100); $red = imagecolorallocate($image, 200, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); imagefill($image, 0, 0, $white); imagefilledarc($image, 50, 50, 100, 50, 91, 360, $red, IMG_ARC_PIE); header('Content-type: image/png'); imagepng($image, phpversion() . '.png'); Expected result: ---------------- The rendered ellipse fill should start just one degree after the 6 hour-o-clock position. Actual result: -------------- The rendered ellipse fill starts much more after the 6-hour-o-clock position. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77460&edit=1

« previous php.bugs (#218953) next »