cvs: gd /libgd ISSUES gd_gif_out.c /libgd/tests bug00004.c

From: Date: Sun, 08 Oct 2006 16:42:47 +0000
Subject: cvs: gd /libgd ISSUES gd_gif_out.c /libgd/tests bug00004.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-24@lists.php.net to get a copy of this message
pajoye Sun Oct 8 16:42:47 2006 UTC Added files: /gd/libgd/tests bug00004.c Modified files: /gd/libgd gd_gif_out.c ISSUES Log: - #4, TrueColor transparency with GIF palette output http://cvs.php.net/viewvc.cgi/gd/libgd/gd_gif_out.c?r1=1.4&r2=1.5&diff_format=u Index: gd/libgd/gd_gif_out.c diff -u gd/libgd/gd_gif_out.c:1.4 gd/libgd/gd_gif_out.c:1.5 --- gd/libgd/gd_gif_out.c:1.4 Wed Apr 5 15:55:57 2006 +++ gd/libgd/gd_gif_out.c Sun Oct 8 16:42:47 2006 @@ -135,7 +135,7 @@ 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, interlace, 0, tim->transparent, BitsPerPixel, tim->red, tim->green, tim->blue, tim); if (pim) { /* Destroy palette based temporary image. */ http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.4&r2=1.5&diff_format=u Index: gd/libgd/ISSUES diff -u gd/libgd/ISSUES:1.4 gd/libgd/ISSUES:1.5 --- gd/libgd/ISSUES:1.4 Thu Sep 28 15:22:49 2006 +++ gd/libgd/ISSUES Sun Oct 8 16:42:47 2006 @@ -6,7 +6,6 @@ or invalid color index #3, gdImageRectangle draws corners twice (affects rectangles with alpha channel) -#4, to come - +#4, TrueColor transparent color not used with GIF output (palette) #5, Numerous security fixes in GIF loader. When the gif palette is broken, the image size is invalid or NULL block at unexpected postions. http://cvs.php.net/viewvc.cgi/gd/libgd/tests/bug00004.c?view=markup&rev=1.1 Index: gd/libgd/tests/bug00004.c +++ gd/libgd/tests/bug00004.c #include "gd.h" int main() { gdImagePtr im; FILE *fp; int trans_c = gdTrueColorAlpha(255,0,0,0); im = gdImageCreateTrueColor(192, 36); gdImageColorTransparent(im, trans_c); gdImageFilledRectangle(im, 2,2, 80,95, 0x50FFFFFF); gdImageFilledRectangle(im, 0,0, 192,36, trans_c); fp = fopen("a.png", "wb"); gdImageGif(im,fp); fclose(fp); /* Destroy it */ gdImageDestroy(im); return 0; }

« previous php.gd.cvs (#24) next »