ID: 50610 User updated by: ceo at l-i-e dot com Reported By: ceo at l-i-e dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: N/A PHP Version: 5.3.2-dev New Comment:
Adding imagesavealpha($rotated, 1); at line 7, immediately after imagerotate but before imagegif does not have any visible effect. I.e., it's still broken. Previous Comments: ------------------------------------------------------------------------ [2009-12-30 23:51:01] j...@php.net How about bug #41624 ? ------------------------------------------------------------------------ [2009-12-30 17:12:02] ceo at l-i-e dot com I have confirmed this bug remains in 5.3.2-dev on a localhost box. ------------------------------------------------------------------------ [2009-12-30 05:59:51] ceo at l-i-e dot com Description: ------------ imagerotate for a transparent input GIF, trying to output a transparent output GIF. At various angles it will fill the new / expanded background with the wrong (non-transparent black) color. This may be the same as http://bugs.php.net/bug.php?id=44429 but I can't tell without the other guy's image either... It could also be related to http://bugs.php.net/bug.php?id=39366 somehow, but that pre-dates this quite a bit, and is supposedly fixed in CVS (now SVN). Plus that's PNG not GIF, though there may be shared code at work. I do have a nice repro for you below. NOTE: This happened to me in PHP 5.2.5, and it's conceivable that it has been fixed, but it has also been confirmed in 5.2.6 by Jochem Maas: [quote] I tested on PHP5.2.6, with the following GD installed: GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.7 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled I get the same result as you. I played with it a bit and the issue 'seems' to revolve around transparency in the original gif. I got the following code to output what you want but I have no idea if it's usable for you (you may be relying on the transparency in the original gif): Reproduce code: --------------- http://www.6112northwolcott.com/dogfight/rotate.phps Expected result: ---------------- All the images in the actual result should have white / transparent backgrounds, unless I'm being particularly dense today. Actual result: -------------- http://www.6112northwolcott.com/dogfight/rotate.htm ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50610&edit=1