public final String dumpImageFile(final File file) throws ImagingException, IOException {
        if (!canAcceptExtension(file)) {
            return null;
        }

        if (LOGGER.isLoggable(Level.FINEST)) {
            LOGGER.finest(getName() + ": " + file.getName());
        }

        return dumpImageFile(ByteSource.file(file));
    }
Writes the ImageInfo and format-specific information for the image content of the specified file to a string.

@param file A valid file reference.
@return A valid string.
@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