Linux Commands Examples

A great documentation place for Linux commands


print information about TIFF files

see also : pal2rgb - tiffcp - tiffcmp - tiffmedian


tiffinfo [ options ] input.tif ...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


for i in $DIR/*.tif ; do
if tiffinfo $i | grep -q 'Sample: 4' ; then
echo $i


Tiffinfo displays information about files created according to the Tag Image File Format, Revision 6.0. By default, the contents of each TIFF directory in each file is displayed, with the value of each tag shown symbolically (where sensible).



Display the colormap and color/gray response curves, if present.


In addition to displaying the directory tags, read and decompress all the data in each image (but not display it).


In addition to displaying the directory tags, print each byte of decompressed data in hexadecimal.


Display any JPEG -related tags that are present.


Set the initial TIFF directory according to the specified file offset. The file offset may be specified using the usual C-style syntax; i.e. a leading ’’0x’’ for hexadecimal and a leading ’’0’’ for octal.


Display the offsets and byte counts for each data strip in a directory.


Enable strip chopping when reading image data.


Set the initial TIFF directory to #.

see also

pal2rgb , tiffcp , tiffcmp , tiffmedian , libtiff(3TIFF)

Libtiff library home page:

How can this site be more helpful to YOU ?

give  feedback