
- Unix Commands Reference
- Unix - Tutorial Home
gif2tiff - Unix, Linux Command
NAME
gif2tiff - create a TIFF file from a GIF87 format image fileSYNOPSIS
gif2tiff [ options ] input.gif output.tifDESCRIPTION
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.OPTIONS
Tag | Description |
---|---|
-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. |
NOTES
The program is based on Paul Haeberlis fromgif program which, in turn, is based on Marcel J.E. Mols GIF reader.EXAMPLES
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
Advertisements