public static ICC_Profile getIccProfile(final byte[] bytes) throws ImagingException, IOException {
        return getIccProfile(ByteSource.array(bytes));
    }
Extracts an ICC Profile (if present) from JPEG, PNG, PSD (Photoshop) and TIFF images.

@param bytes Byte array containing an image file.
@return An instance of ICC_Profile or null if the image contains no ICC profile.
@throws ImagingException if it fails to parse the image
@throws IOException      if it fails to read the image data
src/main/java/org/apache/commons/imaging/Imaging.java