Read image information from a file.
imfinfo
returns a structure containing information about the image stored in the file filename. The output structure contains the following fields.
- ‘Filename’
- The full name of the image file.
- ‘FileSize’
- Number of bytes of the image on disk
- ‘FileModDate’
- Date of last modification to the file.
- ‘Height’
- Image height in pixels.
- ‘Width’
- Image Width in pixels.
- ‘BitDepth’
- Number of bits per channel per pixel.
- ‘Format’
- Image format (e.g.
"jpeg"
).- ‘LongFormat’
- Long form image format description.
- ‘XResolution’
- X resolution of the image.
- ‘YResolution’
- Y resolution of the image.
- ‘TotalColors’
- Number of unique colors in the image.
- ‘TileName’
- Tile name.
- ‘AnimationDelay’
- Time in 1/100ths of a second (0 to 65535) which must expire before displaying the next image in an animated sequence.
- ‘AnimationIterations’
- Number of iterations to loop an animation (e.g. Netscape loop extension) for.
- ‘ByteOrder’
- Endian option for formats that support it. Is either
"little-endian"
,"big-endian"
, or"undefined"
.- ‘Gamma’
- Gamma level of the image. The same color image displayed on two different workstations may look different due to differences in the display monitor.
- ‘Matte’
true
if the image has transparency.- ‘ModulusDepth’
- Image modulus depth (minimum number of bits required to support red/green/blue components without loss of accuracy).
- ‘Quality’
- JPEG/MIFF/PNG compression level.
- ‘QuantizeColors’
- Preferred number of colors in the image.
- ‘ResolutionUnits’
- Units of image resolution. Is either
"pixels per inch"
,"pixels per centimeter"
, or"undefined"
.- ‘ColorType’
- Image type. Is either
"grayscale"
,"indexed"
,"truecolor"
, or"undefined"
.- ‘View’
- FlashPix viewing parameters.