ID: 43828 Updated by: j...@php.net Reported By: christopher dot bertram at yahoo dot de -Status: Open +Status: Feedback Bug Type: GD related Operating System: Win Xp, Win Vista x64 PHP Version: 5.2.5 Assigned To: pajoye New Comment:
Yes, in what version? Please, update the version field whenever you try some snapshot / release / etc. so we don't have to ask for it all the time.. Previous Comments: ------------------------------------------------------------------------ [2009-03-14 00:28:44] christopher dot bertram at yahoo dot de The problem still exists. ------------------------------------------------------------------------ [2008-11-02 13:23:21] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2008-01-12 23:08:14] christopher dot bertram at yahoo dot de Description: ------------ the imagearc and imagefilledarc functions don't seem to support images using truecolor and alphablending. In the following example I don't need alphablending, but I require it to use other images as background. Reproduce code: --------------- <?php //outputs strange image $img = imagecreatetruecolor(100, 100); //works fine using palette image instead //$img = imagecreate(100, 100); imagesavealpha($img, true); imagealphablending($img, true); $transparent = imagecolorallocatealpha($img, 255, 255, 255, 80); //make the background transparent imagefill($img, 0, 0, $transparent); $color = imagecolorallocatealpha($img, 0, 255, 0, 100); imagefilledarc($img, 49, 49, 100, 100, 0 , 359, $color, IMG_ARC_PIE); header('content-type: image/png'); imagepng($img); ?> Expected result: ---------------- Same result as using the paletteimage version. Actual result: -------------- Strange looking arcs and filled arcs. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43828&edit=1