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

<p>
To parse the result use IccProfileParser or ICC_Profile.getInstance(bytes).
</p>

@param bytes Byte array containing an image file.
@return A byte array.
@see IccProfileParser
@see 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