CMYK to RGB color conversion?

Hi,
I have to convert CMYK color array in the RGB color space and vice versa.
I am  using the following code;-
UID colorUID = iDrawing->GetColorUID(kFalse);
UIDRef colourUIDRef(iDrawing->GetDataBase(), colorUID);
InterfacePtr<IColorData> colorData(colourUIDRef, UseDefaultIID());
char
strColor[16]={0};
if(colorData->GetColorSpace() == kPMCsCalRGB)
    ColorArray rgbColor = Utils<IUIColorUtils>()->GetRGBColorValue(m_DB, colorUID);
    sprintf(strColor,
"#%.2x%.2x%.2x", ToInt32(rgbColor[0] * 255), ToInt32(rgbColor[1] * 255), ToInt32(rgbColor[2] * 255));
else
    ErrorCode errStatus = GetRGBColorStr(colourUIDRef, strColor);
ErrorCode GetRGBColorStr(UIDRef colourUIDRef,
char* strColor){
    ErrorCode status = kFailure;
    do 
          I
nterfacePtr<IColorData> colorData(colourUIDRef, UseDefaultIID());          IDataBase* m_DB = colourUIDRef.GetDataBase();
// If color sapce is other then RGB then get the colour array
    ColorArray colourArray = colorData->GetColorData();
    // If the colour space is CMYK then convert it to RGB
    if(colorData->GetColorSpace() == ICMSProfile::kSourceTypeBuiltInCMYK)    {
          IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
          ColorArray rgbColor = Utils<IColorSystemUtils>()->ColorTransform( document, colourArray, ICMSProfile::kSourceTypeBuiltInCMYK,ICMSProfile::kSourceTypeBuiltInRGB);
     sprintf(strColor,
"#%.2x%.2x%.2x", ToInt32(Round(rgbColor[0] * 255)), ToInt32(Round (rgbColor[1] * 255)), ToInt32(Round(rgbColor[2] * 255)));     status = kSuccess;
}while(kFalse);
return status;
}while(kFalse);
return status;

I did some experiments with Illustrator CS6 and the MacBeth RGB test chart and verified my results with Photoshop CS6. I discovered Illustrator is (mostly) doing what it should be doing, within a 1% error (probably rounding) on the output CMYK values. Here's a summary, in case anyone else needs this info:
Assuming the source file's elements are all untagged, when a mixed RGB/CMYK PDF is opened in Illustrator and CMYK mode is
chosen, Illustrator will use the profiles and rendering intent defined in
Color Settings to make the color conversions from RGB to CMYK. Thus, we
have control over the profiles used for this conversion.
If the RGB elements in the PDF file have embedded ICC profiles,
Illustrator will use the embedded ICC profile instead of the RGB profile
defined in Color Settings. This ONLY happens, however, if the PDF file
also includes the correct CMYK output intent profile.
If the PDF doesn't contain a CMYK output intent, Illustrator will fall
back on the Color Settings RGB profile for RGB->CMYK conversion. I believe it
would be more correct for Illustrator to use the embedded RGB profile and
the CMYK profile defined in Color Settings, but that's not how it seems to work.
If the PDF contains the incorrect CMYK output intent, Illustrator will
ignore the Color Settings and respect the embedded RGB and CMYK profiles
for the conversion, as might be expected.

Similar Messages

  • Printing RGB colors - Conversion to CMYK?

    Hi,
    I have been working for a little while in converting my old RGB colors to CMYK printer friendly colors.
    However, I carefully choosed my printing friendly CMYK colors to be as close as possible to the RGB colors but the prints are dull !
    On the other hand, when I print my file withj RGB colors using the PDF Distiller tagged with Adobe1998 profile and send the file to the printer, colors look smarter !
    It means that the CMYK colors I picked myself are not good enough anf the Color Managment in Adobe PDF or Illustrator are better than me ! As follows:
    - In Illustrator -> Print -> Color Management tab -> Color Handling: Let Illustrator determine colors
    - in Acrobat Reader -> Print -> Color Management tab of the plotter: Application managed colors
    Both ouput similar quality prints, and better than my own CMYK colors !
    Are the Application Color Management engines in Illustrator and in Adobe Reader similar in their conversion?
    How can I find out which are the CMYK colors printed when the application (Reader or Illustrator) manages colors, from my initial RGB colors? I would like to use them directly in my document...
    Thanks

    Hi,
    Thanks for your response. I put these color issues on hold because I had no time to search more on that recently...
    However, I have still lots of questions about color conversion!
    When I said "carefully choose" CMYK colors, it means CMYK colors printable and which look similar to my old RGB colors on-screen. But of course, screen is not enough!
    What I noticed is that when I print my old RGB colors (not in printer color space), Adobe Reader or Illustrator were able to make good conversion to CMYK for printing.
    Now, I would like to find out to which CMYK color codes Adobe Reader or Illustrator converted my RGB colors? Then, I would be able to use these CMYK color codes directly in my application...
    Is there any way to find out that?
    Cheers

  • Photos cmyk or rgb color

    Do photos prepared with photoshop (windows)  to be assembled with  indesign cs5.5 and to be printed in a magazine:  must they all be placed all cmyk color?

    Save them as PSD or PDF in Photoshop, Import images in RGB with color profile.
    If the printer needs CMYK you should convert them on export to PDF, better is to do it later.
    Results of converting in Photoshop or InDesign are exactly the very same. But importing RGB in InDesign gives you much more flexibility. In Photoshop you can turn on the CMYK preview, even if you work in RGB, you can even see the different plates.
    There is an article to this topic: http://indesignsecrets.com/import-rgb-images-indesign-convert-cmyk-export.php
    Re: Re: Converting Images to CMYK for Print Publication
    https://www.linkedin.com/groupItem?view=&gid=100302&type=member&item=5948763899443625986&c ommentID=5949299003979034624&r…

  • Choosing profiles for forced RGB to CMYK color conversion

    When a mixed RGB/CMYK PDF is opened in Illustrator CS6, Illustrator forces a conversion to one color space or the other. See this screenshot: http://imgur.com/sK8iEdn
    I assume this is a limitation of Illustrator and there's no way to keep both color spaces. Under that assumption, Is it possible to choose the profiles used for the conversion from RGB to CMYK? Can Illustrator be made to use the RGB and CMYK profiles defined in its Color Settings to make this conversion?

    I did some experiments with Illustrator CS6 and the MacBeth RGB test chart and verified my results with Photoshop CS6. I discovered Illustrator is (mostly) doing what it should be doing, within a 1% error (probably rounding) on the output CMYK values. Here's a summary, in case anyone else needs this info:
    Assuming the source file's elements are all untagged, when a mixed RGB/CMYK PDF is opened in Illustrator and CMYK mode is
    chosen, Illustrator will use the profiles and rendering intent defined in
    Color Settings to make the color conversions from RGB to CMYK. Thus, we
    have control over the profiles used for this conversion.
    If the RGB elements in the PDF file have embedded ICC profiles,
    Illustrator will use the embedded ICC profile instead of the RGB profile
    defined in Color Settings. This ONLY happens, however, if the PDF file
    also includes the correct CMYK output intent profile.
    If the PDF doesn't contain a CMYK output intent, Illustrator will fall
    back on the Color Settings RGB profile for RGB->CMYK conversion. I believe it
    would be more correct for Illustrator to use the embedded RGB profile and
    the CMYK profile defined in Color Settings, but that's not how it seems to work.
    If the PDF contains the incorrect CMYK output intent, Illustrator will
    ignore the Color Settings and respect the embedded RGB and CMYK profiles
    for the conversion, as might be expected.

  • Coverting PMS Colors to CMYK or RGB

    HI there, I have been given some PSM colors to use for a
    website but cant find how to convert them to CMYK or RGB. Does
    anyone know anything about PMS colors and how I would go about
    converting?
    1. Example: PMS 8520 Metallic Light Brown
    Cheers
    Mally

    quote:
    Originally posted by:
    MalRom
    HI there, I have been given some PSM colors to use for a
    website but cant find how to convert them to CMYK or RGB. Does
    anyone know anything about PMS colors and how I would go about
    converting?
    1. Example: PMS 8520 Metallic Light Brown
    Cheers
    Mally
    Years ago, Pantone made a product called ColorWeb Pro that
    had software and also a fan of ink samples and Pantone's
    recommendations for CMYK and RGB (Web) values that would be the
    best representation for each ink. For the Web, they'd researched
    the ink colors and tried to account for variations in graphics
    card, monitor, and printer hardware. Because of that variation,
    there's really no hard and fast conversion you can use. (Plus, the
    RGB colors that are best for the Web won't be the same as the CMYK
    colors that are best for print.)
    Pantone has a number of current products for color matching.
    You might be better off contacting them and getting advice on what
    product would work best for you.
    Pantone Web site
    For a metallic color, you might want to use a subtle gradient
    to simulate a reflective effect, though.
    Good luck!

  • Why do Adobe Color CC and Indesign CC not convert CMYK to RGB the same?

    I recently used Adobe Color CC to create a color theme that will be used for both print and web.  I created the theme with approved CMYK values with the intent of saving the .ASE file to be imported into other CC apps.  Corresponding RGB, Hex, Lab and HSB values are automatically created.  Of course, we are using CMYK for print and RGB for web
    A coworker had separately created the same exact CMYK theme in InDesign CC, and created RGB values from the same exact CMYK values I had used in Adobe Color.
    The InDesign RGB values are quite different from the Adobe Color values.
    Anyone know why the values are not the same, and moreover, which CMYK to RGB conversion values may be relied upon for accuracy?
    EDIT: I guess the real question should be, What are the color management settings built-in to Adobe Color CC, and can they be duplicated in desktop Adobe CC applications?
    Thanks very much

    I found what change it to normal way, but logicaly it's should not be a reason for autoconvert colors. If I choose CMYK and want add CMYK color it should be CMYK (in name minimum) and not RGB.
    File->Documents Colors->CMYK(should be, but RGB was)
    Right now options open like CMYK, not HSB. But if I want color in RGB it added like CMYK. Options like in CMYK, not HSB, again. Still look like error.

  • In the toolbar I click on color face and see the RGB color space view. How do I put them into CMYK?

    In the toolbar left I click on color face and see the RGB color space view. How do I put them into CMYK?
    German:
    In der Werkzeugleiste klicke ich auf Farbfläche und sehe den RGB-Farbraumansicht. Wie stelle ich diese in CMYK um?

    I design print material. I hope Adobe will change it.
    The ID Color Picker works the same as Photoshop's classic color picker except that it doesn't have an H,S,B presentation (which is the more intuitive interface). So both programs let you choose an R, G, B and L, a, b presentation of color via the 6 radio buttons, and you can pick RGB, Lab or CMYK versions of the chosen color—the mode you get depends on where your cursor is. If you pick an out-of-gamut CMYK color it is brought into gamut in the Swatches or Color panels after you click OK.
    So here I'm picking RGB, Lab and CMYK Swatches or Colors of the color selection because my cursor is in a respective RGB, Lab or CMYK field, note that the Add Swatch button changes accordingly:
    When I click inside the color field, the CMYK values are a color managed conversion of the chosen color, but I also have the option of entering any value. So it would be unlikely I would get a blue gray color like 50|0|0|50 with a color managed conversion, but I have the option to enter those specific numbers.
    The 3 versions of the color added as swatches
    An InDesign document can have a mix of RGB, Lab, and CMYK colors. Colors and swatches can be converted to any CMYK destination space when you export or print.

  • Why don't Adobe Color CC and InDesign CC convert CMYK to RGB the same?

    I recently used Adobe Color CC to create a color theme that will be used for both print and web.  I created the theme with approved CMYK values with the intent of saving the .ASE file to be imported into other CC apps.  Corresponding RGB, Hex, Lab and HSB values are automatically created.  Of course, we are using CMYK for print and RGB for web
    A coworker had separately created the same exact CMYK theme in InDesign CC, and created RGB values from the same exact CMYK values I had used in Adobe Color.
    The InDesign RGB values are quite different from the Adobe Color values.
    Anyone know why the values are not the same, and moreover, which CMYK to RGB conversion values may be relied upon for accuracy?
    Thanks very much

    It's working for me (Web, PS, AE, ID, FL; not available in the Color Themes panel in Ai).  Please click the triangle next to the color space to expand and view more data.

  • How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?

    How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?
    When I try to open the document in Illustrator and I convert to CMYK the black font converts to rich black, but to set up for Offset printintg I need the text to be only in Black (100%K).
    The original source of the document is a Microsoft Word file, I have converted the Word file to Pdf in order to setup for OFfset Printing.
    Thanks

    I have tried that way, but the downside is that the fonts are set in gray not in a 100%K, also I have to deal with other fonts that are composites and meant to stay Full Color. I could select text by text and convert to gray but, its a 64 page document and I wouldn't want to make a expensive mistake.

  • RGB Black conversion to CMYK

    Hi,
    Acrobat 9 is converting black I have set at R=G=B=0 in the original document to C=M=Y=0, K=100 (i.e. pure black) when I am converting the document to PDF (with the option to convert to CMYK selected).
    Is there a way to force Acrobat to convert the original black to rich black in pdf, not pure black? And if so, how can I set the CMYK levels of the rich black it would be converted to?
    I tried the Advanced>Print Production>Convert Colors, Promote Gray to CMYK and it did not affect the black area mentioned. I assume because although it was pure black, it was process black in CMYK rather than greyscale space.
    Is there a way to achieve this?
    (surprisingly, Acrobat 8 converts the same original document to a rich black where the black has components in all 4 colours CMYK)
    Thanks.

    Hi
    "I'm sorry, is not enough to English"
    This problem for correct "primarily RGB color space add  document"
    I am prepared add video lesson... wait me

  • CMYK to RGB conversion in photoshop

    Hi,
    I have synchronized my colour settings in bridge to be the same across all my Adobe software, it's currently on Europe Prepress 3 because that's what I've been taught is correct in Australia. I have a colour swatch of C:0 M:90 Y:15 K:0 and when I change the colour slider to RGB in photoshop is gives me the values: R:200 G:53 B:122 (not sure if this is a good way of converting the colours?)
    My initial swatch:
    When I key this exact RGB value online it gives me a much darker swatch:
    So using multiple cmyk to rgb  online converters (to compare) I key in my initial cmyk values and the rgb swatch it converts to is so much brighter and gives me the values R: 255 G:25 B:217
    I know I'm doing something wrong. I hope someone can help me with this!
    Thanks in advance!

    This is about 1) different color spaces which will have different numbers for the same color, and 2) gamut limitations going from one space to another (some color spaces are bigger than others and can contain more saturated colors).
    "Europe Prepress 3" is just a preset. It sets Adobe RGB as working RGB, and FOGRA39 as working CMYK. When you go online, however, you'll most likely get numbers corresponding to sRGB and US Web Coated (SWOP) v2, because these are the Photoshop defaults (but have no particular significance beyond that). IOW there are no such things as "RGB" and "CMYK" - only specific RGB color spaces and specific CMYK color spaces.
    In different color spaces, such as sRGB vs. Adobe RGB, the same color is represented by different values. That's why you have to convert from one to the other.

  • Convert 2 RGB colors to CMYK in AI CS5

    Hi,
    I created a logo in RGB and now I need to have business cards printed and the file has to be in CMYK.  If I change the color mode to CMYK, the colors fade of course and don't match the RGB colors.  I only have two colors in the logo:
    #CCFFFF
    R = 204
    G = 255
    B = 255
    #0000CC
    R = 0
    B = 0
    G = 204
    The printer told me to use a CMYK color pantone guide book.  I am using AI CS5 and was able to locate the Pantone guidebooks that come with the program.  However, I am unsure which Pantone guide I am supposed to use since there are several.  What would be the best way for me to recreate the logo in CMYK mode keeping in mind that I want the two colors to match the RGB colors listed above?  I just googled CCFFFF and discovered that in CMYK it is 20,0,0,0 and # 0000CC = CMYK 100,100, 0, 20).  The color doesn't match exactly in AI, but I am assuming that this is the exact match for the printers?  Please correct me if I am wrong.
    Any assistance is greatly appreciated.
    Thanks!

    You're working backwards, typically colors would be chosen from the Pantone Spot Color guides and then converted to CMYK and finally RGB for web work.  It appears you've got a very light Blue ( 20% C ) and a very dark Purple ( 100%C, 100%M, 20%K ).  The closest Pantone to the light Blue is 628C ( 19C, 6Y ); and 662 ( 100C, 72M, 18K ) for the Purple ( these are older PMS numbers; not the "+" series ).  I'm showing you these numbers so that you'll have an idea of their relationship to Spot colors.  You have not mentioned what type of paper these cards will be printed on...coated or uncoated.  That makes a big difference, too.  Most of the time, stationery items are printed on uncoated paper using Pantone ( or other ) Spot Colors.  I often see coated, glossy business cards similar to those you would buy from VistaPrint online.  The danger is trying to match the coated paper color on a uncoated sheet in the future.  If you are planning for coated paper, the 20% and 100-100-20 combo will be OK ( although the 100C-100M-20K is a little on the dark side...almost Black ).  The dark Purple is a little troublesome because it may look good on the monitor, but you might not like the printed version ( too dark ).  If I were you I'd venture into a local print shop and ask to see their Spot Color guide for the paper you plan on using.  It's best to use your visual sense this way and then apply the CMYK equivalents in your file.  Good luck.

  • My RGB colors are turning to cmyk while bringing image from illustrator or photoshop. Why?  Removing the image from that page bright RGB colors are back.. hmm

    My RGB colors are turning to cmyk while bringing image from illustrator or photoshop. Why? 
    Removing the image from that page bright RGB colors are back.. hmm

    Edit > Transparency Blend Space > Document RGB

  • CMYK RGB Color problem

    Hi,
    I've got this problem that I can't understand and I don't know what to search for when looking for the solution. So hope someone can help. This is the problem.
    I made a logo design in Illustrator and I used Pantone colors. The document is in CMYK color mode. As I need to make some other documents with this design I copy/paste it to a new CMYK color mode document.
    Now the colors look mor pale. The object now still has the same pantone color and CMYK color code but hasn't got the same RGB color code anymore. But when I set this RGB to the values of the original document the colors are still very pale.
    I really can't figure out where the problem is. Hope you understand what I mean.
    Thanks for your help.
    Juvlius

    Color profile settings....
    Mylenium

  • CMYK and Gray Color Space Conversion

    Hi All,
    I have read the Adobe Photoshop CS3 SDK and found Color Space Suite which will color conversion, but i can't able to find sample code.
    Can anyone guide how to convert color? or any sample?
    Regards,
    Selvakumar

    Hi All,
    I have read the Adobe Photoshop CS3 SDK and found Color Space Suite which will color conversion, but i can't able to find sample code.
    Can anyone guide how to convert color? or any sample?
    Regards,
    Selvakumar

Maybe you are looking for

  • Length of parameter field

    Hello all, I'm having trouble with a parameter on a selection-screen. I have a field in which the user must enter a filename/path to a workstation file. The length of the parameter field is 128 (RLGRAP-FILENAME), but on the screen, the parameters app

  • Anyone else have uneven lid when macbook is closed???

    when i close my macbook the is raised a tad more on the right side than the left.....it is raised maybe a millimeter more than the left side....anyone else have this probelm and know how to fix it??

  • Multiple iPads, need to be able to Push apps from home office

    We have sent iPads out to all of our external sales reps and regional sales directors (about 17 total).  Each one has a different Apple ID because we forward our exchange e-mail to their Apple ID's,and we do not give out the password to their Apple I

  • Error when getting port from service

    I've got a problem....I've succesfully created a ws client ..... here is the wsdl: <?xml version="1.0" encoding="UTF-8"?> <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.4. --> <!-- Generated by JAX-WS RI

  • [SOLVED] Query dependencies on a specific package

    Hi, I want to query a list of things that (implicitly or explicitly) depend on a specific package. For example, I want a list of all other packages that require the libx11 package. How can I do this? Last edited by void.pointer (2009-02-12 23:42:16)