public static ImageInfo getImageInfo(final String fileName, final byte[] bytes) throws ImagingException, IOException {
        return getImageInfo(ByteSource.array(bytes, fileName));
    }
Parses the "image info" of an image.

<p>
"Image info" is a summary of basic information about the image such as: width, height, file format, bit depth, color type, etc.
</p>

<p>
Not to be confused with "image metadata."
</p>

@param fileName String.
@param bytes    Byte array containing an image file.
@return An instance of ImageInfo.
@see ImageInfo
@throws ImagingException if it fails to parse the image
@throws IOException      if it fails to read the image data
src/main/java/org/apache/commons/imaging/Imaging.java