public boolean compare(final String name, final int valid, final int actual) throws ImagingException {
        return compare(name, new int[] { valid, }, actual);
    }
Provides information about the compliance of a specified data source (byte array, file, etc&#46;) to an image format.
src/main/java/org/apache/commons/imaging/FormatCompliance.java