public final Dimension getImageSize(final File file) throws ImagingException, IOException {
        return getImageSize(file, null);
    }
Gets the size of the image described by the specified file.

@param file A valid reference to a file.
@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