A problem was found during project creation. When imagick is used to process images, it seems that CMYK cannot be processed ..
The thumbnail format is CMYK, but ie cannot be accessed.
Now, you can convert CMYK to GBK code and take notes.
... The previous section is omitted... Save the image as follows:
If ($ im-> getimagecolorspace () = imagick: colorspace_cmyk ){
$ Profiles = $ im-> getimageprofiles ('*', false );
$ Has_icc_profile = (array_search ('icc ', $ profiles )! = False );
If ($ has_icc_profile = false ){
$ Icc_cmyk = file_get_contents ('uswebuncoated. ICC ');
$ Im-> profileimage ('icc ', $ icc_cmyk );
Unset ($ icc_cmyk );
}
$ Icc_rgb = file_get_contents ('adobergb1998. icc ');
$ Im-> profileimage ('icc ', $ icc_rgb );
Unset ($ icc_rgb );
}
$ Im-> writeimage ($ rgb_img );
You can download the provided ICC file:
CMK: http://www.mattbeals.com/icc/profiles/cmyk/USWebUncoated.icc.zip
RGB:Http://www.mattbeals.com/icc/profiles/rgb/AdobeRGB1998.icc.zip