public final ImageMetadata getMetadata(final File file) throws ImagingException, IOException {
        return getMetadata(file, null);
    }
Gets image metadata from the specified file. Format-specific ImageParser implementations are expected to return a valid IImageMetadata object or to throw
an ImageReadException if unable to process the specified data.

@param file A valid reference to a file.
@return A valid image metadata object describing the content extracted from the specified content.
@throws ImagingException In the event that the specified content does not conform to the format of the specific parser implementation.
@throws IOException      In the event of unsuccessful file read or access operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java