OVERVIEW GIFSAMPL is a handy utility to produce sample collections of GIF files. It may be used to produce preview images for downloading, or just to showcase a large collection. Sample collections are GIF files that contain a number of other images on a single screen. Each sampled image is shrunk to a consistent size, converted to a common color format, labeled, and stored with the others. GIF is a graphics format created by CompuServe for storing bitmapped images, but you probably already knew that. GIF and "Graphics Interchange Format" are trademarks (TM) of CompuServe Incorporated, an H&R Block Company. GIFSAMPL was created in August 1991 by Mark S. Ransom. Version 2.3 was created on February 23, 1994. ACKNOWLEDGMENTS No achievement stands alone; it rests on the achievements of others. In this case, the relationship is a bit more direct. This program was made possible by the direct incorporation of code and algorithms by other people. I would like to acknowledge the following contributions, and thank the authors: CLIPGIF by Steve Becquer. GIFSAMPL actually started as modifications made to CLIPGIF. Very little of the original remains; however, I would have had no idea how to deal with a GIF file without it. DECODER.C by Steven A. Bennett, based on work by Steve Wilhite. This provides the GIF decompression function. PICLAB by Lee Daniel Crocker and the Stone Soup Group. The GIF compression function from this package was used. "Digital Halftoning" by Robert Ulichney. This book contains a description of the Floyd-Steinberg dithering algorithm, used in producing the color images. COMMAND LINE The GIFSAMPL command line takes the following form: GIFSAMPL [drive:][path]outfile[.ext][ /option=value] The first item is simply the name of the output file to create. If the drive and path are not included, the current directory is used. If an extension is not provided, .GIF will be used. If the output file name ends with a number, GIFSAMPL can make more than one output file. The number at the end of the filename will get incremented each time the old file fills up. For example, if the filename is SAMPLE01.GIF, the next file would be SAMPLE02.GIF, and so on up to SAMPLE99.GIF. Options: (default values are in parenthesis) /WIDTH=screen width (640) Sets the width of the output file. /HEIGHT=screen height (480) Sets the height of the output file. /ROWS=rows of samples per screen (3) Selects the number of samples to be included in each output file. The screen will be divided into this many sections in both directions; for the default value of 3, there will be 9 images in a single screen. /GREY=bits per pixel (0) This option selects grey-scale output, instead of color. The number of bits per pixel determine how many shades of grey are created: 4 bits=16 shades, 5 bits=32 shades, 6 bits=64 shades. A value of 4 produces samples which can be viewed on all VGA displays; 6 is the maximum that can be displayed on most super-VGAs. The value may be between 1 and 8. /SHARPEN This option turns on a standard edge enhancement algorithm. As an image is shrunk, much of the detail is lost. The edge enhancement produces a sharper looking image, counteracting some of the loss. The main drawback is a slight increase in processing time. /LUT=lut file name (gifsampl.lut) Specifies a Look-Up-Table (LUT) file for color conversion. Two files are included in the distribution kit. The default, gifsampl.lut, tries to treat all colors equally. The second, skins.lut, is optimized for skin tones at the expense of the other colors. The selection of a LUT will determine how grainy the samples look. GIFSAMPL tries to look for this file in the current directory first, and then in the directory that GIFSAMPL was loaded from. INPUT FILES GIFSAMPL reads a list of file names to get the files to sample. The file names must be typed in, one at a time. This can obviously be very time- consuming. The input redirection features of DOS can be used to feed the filenames to GIFSAMPL. If you have a list of files in a file called GIFLIST.TXT, for example, you would use the following command: gifsampl sample01.gif