Code: Select all
if ((MagickGetImageProfile ($this->_mw, "IPTC") == "") || (MagickGetImageProfile ($this->_mw, "ICC") == "")) {
MagickSetImageProfile($this->_mw, "ICC", file_get_contents('USWebCoatedSWOP.icc')); // CMYK profile
}
// Add profile to image (RGB)
MagickProfileImage($this->_mw, "ICC", file_get_contents('AdobeRGB1998.icc')); // RGB profile
Important is also to use SetImageProfile in the upper part and just ProflieImage in the lower part or it will not work!
The icc files are from adobe.com, you can find the fast with Google when you search for "Adobe ICC Profiles". I downloaded the end user ones and from there it should be pretty straight forward which ones to pick.