|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-01-15 11:26 UTC] 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.
[2019-01-15 11:26 UTC] p1100i at gmx dot com
[2019-01-16 18:44 UTC] cmb@php.net
-Status: Open
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2019-01-16 18:44 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 23:00:01 2025 UTC |
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.