ID: 34336 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Assigned Bug Type: GD related -Operating System: Windows 2000 +Operating System: * -PHP Version: 4.4.0 +PHP Version: 5CVS, 4CVS (2005-08-31) -Assigned To: +Assigned To: pajoye
Previous Comments: ------------------------------------------------------------------------ [2005-09-01 21:41:26] [EMAIL PROTECTED] Description: ------------ Imagerotate doesn't preserve transparency information. Next image was used in example below: http://img24.imageshack.us/img24/228/spritepaw8alpha2os.png Reproduce code: --------------- <?php $sprName = "sprite_paw8_alpha.png"; $spr = imagecreatefrompng($sprName); //create sprite object //get sprite's transparent color $sprTransparent = imagecolortransparent($spr); //sprite rotation $rotate = 15; //rotate sprite, ?keeping transparent pixels $spr = imagerotate($spr, $rotate, $sprTransparent); header("Content-type: image/gif"); imagegif($spr); imagedestroy($spr); ?> Expected result: ---------------- Rotated image with transparent background. Actual result: -------------- Rotated image with black background. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34336&edit=1