Information about graphics file
returns
a structure whose fields contain information about an image in a graphics
file, info
= imfinfo(filename
)filename
.
The format of the file is inferred from its contents.
If filename
is a TIFF, PGM, PBM, PPM, HDF, ICO,
GIF, SVS, or CUR file containing more than one image, then
info
is a structure array with one element for
each image in the file. For example, info(3)
would
contain information about the third image in the file.
When you use imfinfo
to get information about an
Adobe DNG file, it returns the image dimensions of the preview image in
the 'Height'
and 'Width'
fields of the
info
structure.