From: deepmindster at gmail dot com Operating system: linux PHP version: 5.2.5 PHP Bug Type: GD related Bug description: problem with alpha in imagerotate, only for gifs
Description: ------------ Hello. Looks like imagerotate do not save alpha for gifs.. There is example of code: Reproduce code: --------------- <?php $im = imagecreatefrompng( dirname( $_SERVER['SCRIPT_FILENAME'] ) . '/gifs/0.png' ); $tr = imagecolortransparent( $im ); $r = imagerotate( $im, 45., $tr ); imagesavealpha( $r, true ); //Png works perfect //header( 'Content-type: image/png' ); //imagepng( $r ); //Gifs does not works.. black or while or gray background.. :( header( 'Content-type: image/gif' ); imagegif( $r ); ?> Expected result: ---------------- it should be rotated transparent image Actual result: -------------- background color instead transparent background -- Edit bug report at http://bugs.php.net/?id=44429&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44429&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44429&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44429&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44429&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44429&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44429&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44429&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44429&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44429&r=support Expected behavior: http://bugs.php.net/fix.php?id=44429&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44429&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44429&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44429&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44429&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44429&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44429&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44429&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44429&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44429&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44429&r=mysqlcfg