public final ImageMetadata getMetadata(final byte[] bytes) throws ImagingException, IOException {
        return getMetadata(bytes, null);
    }
Gets image metadata from the specified array of bytes. 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 bytes A valid array of bytes
@return A valid, potentially subject-matter-specific implementation of the IImageMetadata interface describing the content extracted from the source
        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 data read operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java