ID: 50610
Updated by: lynch@php.net
Reported By: ceo at l-i-e dot com
-Status: Bogus
+Status: Open
Bug Type: GD related
Operating System: N/A
PHP Version: 5.3.2-dev
Previous Comments:
------------------------------------------------------------------------
[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 08:49:19] jani@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[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