From: Pierre Joye Date: Mon, 13 Mar 2006 21:56:38 +0000 (+0000) Subject: - #36697, Transparency is lost when using imagecreatetruecolor X-Git-Tag: php-5.1.3RC2~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01479757e3f007981dfe7b5ef90dcedbdc079217;p=php - #36697, Transparency is lost when using imagecreatetruecolor --- diff --git a/NEWS b/NEWS index 4f68751a54..9081fd7091 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP NEWS - Removed the E_STRICT deprecation notice from "var". (Ilia) - Fixed debug_zval_dump() to support private and protected members. (Dmitry) - Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry) +- Fixed bug #36697 (Transparency is lost when using imagecreatetruecolor). + (Pierre) 09 Mar 2006, PHP 5.1.3RC1 - Updated PCRE to version 6.6. (Andrei) diff --git a/ext/gd/libgd/gd_gif_out.c b/ext/gd/libgd/gd_gif_out.c index 49da75f96f..651df90d4f 100644 --- a/ext/gd/libgd/gd_gif_out.c +++ b/ext/gd/libgd/gd_gif_out.c @@ -133,7 +133,7 @@ void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out) BitsPerPixel = colorstobpp(tim->colorsTotal); /* All set, let's do it. */ GIFEncode( - out, tim->sx, tim->sy, interlace, 0, transparent, BitsPerPixel, + out, tim->sx, tim->sy, tim->interlace, 0, tim->transparent, BitsPerPixel, tim->red, tim->green, tim->blue, tim); if (pim) { /* Destroy palette based temporary image. */ diff --git a/ext/gd/tests/bug36697.phpt b/ext/gd/tests/bug36697.phpt new file mode 100644 index 0000000000..b257f63e25 --- /dev/null +++ b/ext/gd/tests/bug36697.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #36697 (TrueColor transparency with GIF palette output). +--SKIPIF-- + +--FILE-- + +--EXPECT-- +255 0 0