Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - <b>tifinfo</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TIFInfo

Reads a TIFF file header and displays image information


Syntax

TIFINFO <cFILENAME.TIF>


Arguments

<cFILENAME.TIF>
Name of the TIFF image file, and optional drive and path.


DOS Error Messages

Cannot open <cFILENAME.TIF>
This is not a TIFF Image file
Cannot allocate memory for line buffers
LSEEK error: file is truncated
TIFF Image width tag is missing
TIFF Image height tag is missing


Remarks

TIFInfo reads the header of 1- through 8- or 24-bit TIFF, Versions 
4.2/5.0/6.0 image file and displays information about <cFILENAME.TIF>. If 
the bits per pixel is less than or equal to 8 then <nColors> will contain 
the number of colors in the file, otherwise, <nColors> will display the bits 
per pixel. The header information is displayed in 6 rows, starting at column 
0: field name, colon delimiter, and at column 18, information contained in 
the field. The header information displays as shown in the following example 
and is pipable to a file.

Header            Information

<nLeftOffset>     Horizontal starting left coordinate of the image.

<nTopOffset>      Vertical starting top coordinate of the image.

<nImageWidth>     Horizontal width of the image.

<nImageHeight>    Vertical height of the image.

<nColors>         Number of colors contained in the image.

<nBitsPerPixel>   Number of bits per pixel.


Example

TIFINFO D:\IMAGES3\GAL1.TIF

If successful, this 16 color TIFF 5.0 should return:

File          :  D:\IMAGES3\GAL1.TIF
Left offset   :  0
Top offset    :  0
Image width   :  2084
Image height  :  1383
Colors        :  16

TIFINFO D:\IMAGES3\HEATER.TIF

If successful, this 256 color TIFF 5.0 should return:

File          :  D:\IMAGES3\HEATER.TIF
Left offset   :  0
Top offset    :  0
Image width   :  656
Image height  :  536
Colors        :  256

TIFINFO D:\IMAGES3\412.TIF

If successful, this bilevel, document TIFF 4.2 should return:

File          :  D:\IMAGES3\412.TIF
Left offset   :  0
Top offset    :  0
Image width   :  1728
Image height  :  2176
Colors        :  2

TIFINFO D:\IMAGES\CHIP11.TIF

If successful, this 24-bit RGB TIFF 5.0 should return:

File          :  D:\IMAGES3\CHIP11.TIF
Left offset   :  0
Top offset    :  0
Image width   :  528
Image height  :  516
Colors        :  24-bit



See Also: JPEGInfo CEGInfo FLICInfo ShowTIF

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson