Can one convert the color model of an image?

Comments

23 comments

  • Avatar
    Itay Taragano

    You can set the  color_space  parameter to  no_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

    0
    Comment actions Permalink
  • Avatar
    Andreas Wellén

    Thanks Itay for the answer, quick follow up; can one apply the opposite transfer going from CMYK to RGB?

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    Currently converting from RGB to CMYK isn't supported. However, it's on our road-map.

    0
    Comment actions Permalink
  • Avatar
    George Coltart

    I'm also very interested in RGB to CMYK conversion for clients to download print-ready files....

    thanks

    George

    0
    Comment actions Permalink
  • Avatar
    Andreas Wellén

    It's stated that this function is on the product road-map. When is it planned for?

     

    Best regards,

    Andreas Wellén

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    While this is still on our road-map, there's no ETA yet.

    0
    Comment actions Permalink
  • Avatar
    iti tomar

    How can we change color of an image using Jquery or javascript?

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    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'});

    0
    Comment actions Permalink
  • Avatar
    Debra Lemak

    Is the RGB to CMYK conversion still on the road map? Any updates on a release date?

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    UPDATE

    Cloudinary now supports converting sRGB images to CMYK. This can be done by setting the color_space parameter to cmyk (cs_cmyk in URLs).
    For example:
    http://res.cloudinary.com/demo/image/upload/cs_cmyk/sample.jpg

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    Is it possible to covert an RGB image with an Adobe RGB color profile to CMYK image with a CMYK SWOP profile?

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Hi Jeff,

    That should be possible. Could you please share an example image URL that we can look at and test with?

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    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.

    0
    Comment actions Permalink
  • Avatar
    Erwin Lukas

    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. 

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    Thanks Erwin

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    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:

    https://res.cloudinary.com/df2gps1sp/image/upload/cs_icc:USWebCoatedSWOP_hv2oso.icc/v1589039532/CB204_FC_b1s8f6.jpg

    The ICC profile has been uploaded to my account:
    https://res.cloudinary.com/df2gps1sp/raw/upload/v1589041057/USWebCoatedSWOP_hv2oso.icc

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    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.jpg

    After 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-

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    WOW! Thanks Aleksandar for the fast response and the work you did. Coudinary's support is top notch!

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    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. 

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    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?

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Hi Jeff,

    It looks like this file should have converted to CMYK with the specific color profile. I will raise this internally and update once I have any new information on this.

    0
    Comment actions Permalink
  • Avatar
    Jeff Stafford

    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.

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Hi Jeff,

    Thank you for providing this information. I will check this internally and update once I have any new insights.

    0
    Comment actions Permalink

Please sign in to leave a comment.