Can one convert the color model of an image?
Can one convert the color model of an image, transferring it between RGB and CMYK?
-
You can set the
color_space
parameter tono_cmyk
(cs_no_cmyk
in URLs) to convert CMYK images to RGB.
Here's a Ruby example:cl_image_tag("sample.jpg", :color_space => "no_cmyk")
Here's a URL example:
http://res.cloudinary.com/demo/image/upload/cs_no_cmyk/sample.jpg -
You can change the color of an image using the technique as explained in the following:
http://support.cloudinary.com/entries/25131922-How-can-I-color-an-image-For example, in jQuery:
$.cloudinary.image("sample.jpg", { effect: 'colorize', color: 'red'});
-
UPDATE
Cloudinary now supports converting sRGB images to CMYK. This can be done by setting the
color_space
parameter tocmyk
(cs_cmyk
in URLs).
For example:
http://res.cloudinary.com/demo/image/upload/cs_cmyk/sample.jpg -
Thanks Aleksandar,
https://lib.store.yahoo.net/lib/pomegranate/RGBImageWithAdobeRGBProfile.jpg
If it's possible to do this type of conversion it's important for my needs that it NOT be converted to an intermediate profile such as SRGB before conversion to CMYK SWOP. Doing so will loose color range.
-
Hi Jeff,
It is possible to change the color space by specifying the color space.
You can refer to our documentation to learn more. It's also possible to specify the ICC file as well. -
I'm a Cloudinary newbie, and I could use some help. Can someone tell how to write the correct syntax for an HTTPS request to render an RGB file in the CMYK model using a specified color space (icc) file? Here's what's not working:
The ICC profile has been uploaded to my account:
https://res.cloudinary.com/df2gps1sp/raw/upload/v1589041057/USWebCoatedSWOP_hv2oso.icc -
Hi Jeff,
The reason why your URL doesn't work is that the ICC file needs to be uploaded as Raw with type Authenticated. To help with that I created an upload preset in your account (Settings -> Upload tab) called raw_authenticated. Afterwards, I set that as a Default Upload Preset for Media Library Uploads. (Bottom of Settings -> Upload) and I uploaded that file in your Media Library as Raw - Authenticated.
I can reference that newly uploaded file (called: USWebCoatedSWOP.icc) like so -
https://res.cloudinary.com/df2gps1sp/image/upload/cs_icc:USWebCoatedSWOP.icc/CB204_FC_b1s8f6.jpgAfter uploading, I removed the raw_authenticated preset as a default upload preset, but if you need to upload other raw authenticated assets then you can use the same approach to upload. Please see the following article for more details on that and other upload preset options -
https://support.cloudinary.com/hc/en-us/articles/208097215-How-can-I-add-upload-options-when-uploading-via-the-Media-Library- -
So after downloading the image file it appears that the SRGB ICC profile is attached. Is there a way to render an image that has the CMYK profile attached that was included in the request?
https://res.cloudinary.com/df2gps1sp/image/upload/cs_icc:USWebCoatedSWOP.icc/CB204_FC_b1s8f6.jpg
Thanks again for your help.
-
Hi Jeff,
You can add `cs_cmyk` to your URL, like this:
https://res.cloudinary.com/df2gps1sp/image/upload/cs_cmyk/CB204_FC_b1s8f6.jpg
Is this what you are looking for?
-
Michal,
Thanks for your assistance. I can use the cs_cmyk parameter and the resulting image has the "U.S. Web Coated (SWOP) v2" icc profile assigned to it. But when I use the cs_icc parameter with an alternate CMYK icc profile the resulting image has the sRGB profile assigned to it. I just briefly analyzed the image with the sRGB profile and my guess is that the color conversion was done using the alternate CMYK icc profile but then the sRGB profile was assigned to it and/or used for a second conversion.
My company would like to utilize Cloudinary's platform for both website applications and DAM for digital and print. Some of our print-based marketing materials are printed using the FOGRA color calibration system which has its own icc profiles.
Post is closed for comments.
Comments
23 comments