From adam@uunet.pipex.com Wed Apr 23 08:32:37 1997 Date: Wed, 23 Apr 1997 09:09:24 GMT From: "Adam D. Moss" To: gimp-developer@scam.xcf.berkeley.edu Subject: [gimp-devel][patch] gif plugin patch This little patch allows the GIF plugin to save better-packed GIFs in many cases. I think something similar has been posted before by someone, but was overlooked. *** ../../gimp-0.99.8/plug-ins/gif.c Fri Apr 18 01:18:51 1997 --- gif.c Tue Apr 22 18:58:49 1997 *************** *** 1041,1047 **** break; default: ! fprintf (stderr, "GIF: you should not receive this error for any reason\n"); return FALSE; break; } --- 1041,1047 ---- break; default: ! fprintf (stderr, "GIF: GIMP let through an inappropriate image. Sorry, can't save this as a GIF.\n"); return FALSE; break; } *************** *** 1062,1068 **** rowstride = drawable->width; BitsPerPixel = colorstobpp (colors); ! BitsPerPixel = 8; GIFEncode (outfile, cols, rows, gsvals.interlace, 0, transparent, BitsPerPixel, Red, Green, Blue, GetPixel); --- 1062,1068 ---- rowstride = drawable->width; BitsPerPixel = colorstobpp (colors); ! /* BitsPerPixel = 8;*/ GIFEncode (outfile, cols, rows, gsvals.interlace, 0, transparent, BitsPerPixel, Red, Green, Blue, GetPixel);