public final Dimension getImageSize(final byte[] bytes, final T params) throws ImagingException, IOException {
        return getImageSize(ByteSource.array(bytes), params);
    }
Gets the size of the image described by the specified byte array.

@param bytes  A valid byte array.
@param params Optional instructions for special-handling or interpretation of the input data.
@return A valid instance of Dimension.
@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 read or access operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java