From ff2822a82b740edb8ccf307f080bae188c200fb9 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 14 Mar 2006 03:46:59 +0000 Subject: [PATCH] - MFB: #36697, truecolor image lost im->transparent --- ext/gd/libgd/gd_gif_out.c | 2 +- ext/gd/tests/bug36697.phpt | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 ext/gd/tests/bug36697.phpt 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 -- 2.40.0