gif2tiff - Unix, Linux Command



gif2tiff - create a TIFF file from a GIF87 format image file


gif2tiff [ options ] input.gif output.tif


Gif2tiff converts a file in the GIF87 format to TIFF. The TIFF image is created as a palette image, with samples compressed with the Lempel-Ziv & Welch algorithm ( Compression=5). These characteristics can overridden, or explicitly specified with the options described below.


-c Specify a compression scheme to use when writing image data: -c none for no compression, -c packbits for the PackBits compression algorithm, -c zip for the Deflate compression algorithm, and -c lzw for Lempel-Ziv & Welch (the default).
-r Write data with a specified number of rows per strip; by default the number of rows/strip is selected so that each strip is approximately 8 kilobytes.


The program is based on Paul Haeberli’s fromgif program which, in turn, is based on Marcel J.E. Mol’s GIF reader.


1. Create tiff file without any compression

$ gif2tiff -c none testin.gif testout.tif

2. Create tiff file with Lempel-Ziv & Welch algorithm

$ gif2tiff -c lzw testin.gif testout.tif
$ gif2tiff testin.gif testout.tif

Either of the above two commands can be used, as Lempel-Ziv & Welch algorithm is the default compression