To obtain information about a graphics file and its contents,
imfinfo function. You
imfinfo with any of the formats supported
by MATLAB®. Use the
to determine which formats are supported.
Note You can also get information about an image displayed in the Image Tool — see Get Image Information in Image Viewer App.
The information returned by
on the file format, but it always includes at least the following:
Name of the file
Version number of the file format
File modification date
File size in bytes
Image width in pixels
Image height in pixels
Number of bits per pixel
Image type: truecolor (RGB), grayscale (intensity), or indexed