ID: 43828 User updated by: christopher dot bertram at yahoo dot de Reported By: christopher dot bertram at yahoo dot de Status: Assigned Bug Type: GD related Operating System: Win Xp, Win Vista x64 -PHP Version: 5.2.5 +PHP Version: 5.2.9 Assigned To: pajoye New Comment:
The bug can be found in every PHP-Version, but I don't have enough time to test a snapshot or run the script on our linux servers. Once I found a patch for that problem, but it is very troublesome to change the code everytime you compile php. Maybe it can be helpfull for you. http://chem.skku.ac.kr/~wkpark/linux/patch/php5.x-gd-bresenham4.patch Previous Comments: ------------------------------------------------------------------------ [2009-03-16 13:42:46] [email protected] It is a real bug, with any version. ------------------------------------------------------------------------ [2009-03-16 13:40:15] [email protected] 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.. ------------------------------------------------------------------------ [2009-03-14 00:28:44] christopher dot bertram at yahoo dot de The problem still exists. ------------------------------------------------------------------------ [2008-11-02 13:23:21] [email protected] 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
