public static FormatCompliance getFormatCompliance(final File file) throws ImagingException, IOException {
        return getFormatCompliance(ByteSource.file(file));
    }
Attempts to determine the image format of the specified data and evaluates its format compliance. This method returns a FormatCompliance object which
includes information about the data's compliance to a specific format.

@param file valid file containing image data
@return if successful, a valid FormatCompliance object.
@throws ImagingException in the event of unreadable data.
@throws IOException      in the event of an unrecoverable I/O condition.
src/main/java/org/apache/commons/imaging/Imaging.java