GD 1.2 utility program Usage: webgif [-i y|n ] [-l] [-t index|off ] [-d] gifname.gif Where: -i controls interlace (specify y or n for yes or no). y: gdImageInterlace(im, 1); /* Set interlace. */ n: gdImageInterlace(im, 0); /* Clear interlace. */ -l outputs a table of color indexes. : printf("%d %d %d %d\n", j, gdImageRed(im, j), gdImageGreen(im, j), gdImageBlue(im, j)); -t sets the specified color index (0-255 or none) to be the transparent color. : gdImageColorTransparent(im, -1); /* -1 means not transparent. */ -d reports the dimensions and other characteristics of the image. : printf("Width: %d Height: %d Colors: %d\n", gdImageSX(im), gdImageSY(im), gdImageColorsTotal(im)); t = gdImageGetTransparent(im); if (t != (-1)) { printf("Transparent index: %d\n", t); } else { /* -1 means the image is not transparent. */ printf("Transparent index: none\n"); } if (gdImageGetInterlaced(im)) { printf("Interlaced: yes\n"); } else { printf("Interlaced: no\n"); } Note: you may wish to pipe to "more" when using the -l option. GD 1.2 utility program