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

From: Date: Wed, 16 Jan 2019 18:44:41 +0000
Subject: Bug #77460 [Opn->Dup]: 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-219017@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 Updated by: cmb@php.net Reported by: p1100i at gmx dot com Summary: Filled arc render (imagefilledarc) does not render from the correct degree. -Status: Open +Status: Duplicate Type: Bug Package: GD related Operating System: bionic / ArchLinux PHP Version: 7.3.1 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This is a duplicate of bug #73614. Previous Comments: ------------------------------------------------------------------------ [2019-01-15 11:26:44] p1100i at gmx dot com Improves title. ------------------------------------------------------------------------ [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 (#219017) next »