public final ImageInfo getImageInfo(final ByteSource byteSource) throws ImagingException, IOException {
        return getImageInfo(byteSource, null);
    }
Gets image information from the specified ByteSource. Format-specific ImageParser implementations are expected to return a valid ImageInfo object or to
throw an ImageReadException if unable to process the specified data.

@param byteSource A valid ByteSource object
@return A valid image information object describing the content extracted from the specified data.
@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 access operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java