Covert DocumentColorSpace CMYK to RGB?

All,
Is there a way to change a document's colorspace between CMYK and RGB?
I know the Document.documentColorSpace says 'read-only', but according to the documentation, it seems like the Application.open() method has the ability to open the document with a different colorspace, but doesn't seem to work... from the documentation:
var fileRef = filePath;
if (fileRef != null) {
     var optRef = new OpenOptions();
     optRef.updateLegacyText = true;
     var docRef = open(fileRef, DocumentColorSpace.RGB, optRef);

The way to change it:
You cannot change it when the document is open, but this should work:
- Open the document with the DocumentColorSpace.CMYK
- Create a script that opens a new blank document with a Document preset of DocumentColorSpace.RGB
- Create a copy function that copy's the data from one document to the other.
- Create a function that closes the original document but stores it's name and path in a variable.
- Create a save function that saves the new document under the same name and location, or if you like a different location.
Cheers
Daniel

Similar Messages

  • 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!

  • I can convert almost things multiple times at the same time including CMYK to RGB (or sRGB), but not RGB to CMYK and not brighten/contrast. How?

    I can convert almost things multiple times at the same time including CMYK to RGB (or sRGB), but not RGB to CMYK and not brighten/contrast. How?

    If you want a relevant answer you may have to elaborate on what you actually mean. Posting screenshots might help, too.
    In any case multiple conversions of an image are not advisable in general.

  • How to convert CMYK to RGB programmatically.

    Hi,
    I have a CMYK colorspace in indesign, i want to convert that as RGB color space, I got some codes, but I am getting incorrect data.
    Some of the codes which I tried are given below
            double cyan = 35.0;
            double magenta = 29.0;
            double yellow = 0.0;
            double black = 16.0;
            cyan = Math.min(255, cyan + black); //black is from K
            magenta = Math.min(255, magenta + black);
            yellow = Math.min(255, yellow + black);
            l_res[0] = 255 - cyan;
            l_res[1] = 255 - magenta;
            l_res[2] = 255 - yellow;
    @Override
        public float[] toRGB(float[] p_colorvalue) {
            float[] l_res = {0,0,0};
            if (p_colorvalue.length >= 4)
                float l_black = (float)1.0 - p_colorvalue[3];
                l_res[0] = l_black * ((float)1.0 - p_colorvalue[0]);
                l_res[1] = l_black * ((float)1.0 - p_colorvalue[1]);
                l_res[2] = l_black * ((float)1.0 - p_colorvalue[2]);
            return (l_res);
    The values are C=35, M = 29, Y = 0, K = 16 in CMYK color space and the correct RGB values are R = 142, G = 148, B = 186.
    In adobe indesign, using swatches we can change the mode to CMYK or to RGB.
    But I want to do that programmatically, Can I get any algorithm to convert CMYK to RGB which will give the correct RGB values.
    And one more question, if the alpha value for RGB is 1 then what will be the alpha value for CMYK?
    Can anyone help me to solve these issues... Thanks in advance.

    All you have to do is loop thru the swatches and change the space to RGB. Below is an AppleScript, but it shouldn't be too difficult to come up with the equivalent JavaScript. Your document's assigned RGB space will determine what RGB space the CMYK converts to, so if you are looking for sRGB, then Edit>Assign Profiles...>Assign Profile: sRGB
    tell application "Adobe InDesign CS3"
    tell document 1
    repeat with a from 1 to count of every swatch
    try
    set space of color a to RGB
    end try
    end repeat
    display dialog "All swatches have been converted to RGB color"
    end tell
    end tell

  • Convert cmyk to rgb in acrobat 7

    Good morning,
    I have a question about converting color spaces using Acrobat 7 Professional  and Pitstop Pro.
    I have some CMYK PDFs used for magazine printing that I need to convert to a 144 DPI RGB version for a digital edition.
    I know most folks are concerned with RGB to CMYK but I need to do it in reverse...
    If I do a Convert Color in Acrobat CMYK to RGB it looks a lot better than if I do it using an Action List command to Convert to RGB  in Pitstop.
    The Pitstop ones look almost posterized, way darker with significant color shifts
    I would have thought Pitstop would use the Acrobat color engine to do the transformation to RGB but it seeems it knid of does it's own thing.
    I do have sRGB selected in my Color Management Prefs in Acrobat.
    It would be nice to make this RGB second version PDF with Pitstop and Distiller on our server so it runs more automated, less manual intervention...
    thanks for any advice you have,
    Pat

    I think I stumbled across the solution... there are separate Color Management Preference controls for Pitstop.
    I selected sRGB instead of the Enfocus Default RGB.

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

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

  • How do you Convert CMYK to RGB

    I have a project that I need to convert all of the AI files from CMYK to RGB. This use to be very simple back-in-the-day by just choosing Filter > Convert to RGB. I know about Document Color Mode and Convert to RGB.
    When I select all of the objects and choose RGB under Document Color Mode, I still see CMYK plates when I preflight the PDF. Depending on what the Document Color Mode is set on, I either have Convert to RGB grayed out or always available. The resulting file show up as CMYK in both Quark and ID along with CMYK plates when I preflight the PDF.
    What am I missing here?
    AI CC 2014

    Can you be more specific? Which option are you interested in?

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

  • CMYK and RGB in one document

    I do not understand why the RGB and CMYK dokument still needs to be separate?
    So at the end decide how and in what format should I save my output result.
    We have the era of CMS, and Illustrator has not changed thinking!???
    Now every time If I create a style guide for different media I need to save separate documents, and make changes the tem, and when I want to change jet mess sync.
    Please explain if I think impractically.
    Eg:
    The same applies to the choice of mixing color for the object.
    If select object the color mixing of RGB, HSL, WEB etc ... let the mixture is automatically called when re-select the object.
    If I wanted to replace the selected objects to a particular model of CMYK, RGB etc then I can select it and choose options from a palette of CMYK, RGB etc, will automatically convert on a mixing model.
    Just add an option in isolates by RGB, CMYK etc. in my document if I necessarily want to isolate the CMYK or RGB object in my composition.
    As it is well make in the preview window in "Recolor " function under the magnifying glass icon.
    (sorry for poor English)

    I support your point of view, Illustrator development team need to work to update Illustrator's Color Management System, that's why color profiles are.
    We need to create color in Lab, RGB or CMYK in the same document.

  • 3 Adobe Programs give me inconsistent numbers when covert to CMYK from Pantone Pantone+ Solid Coated?

    3 Adobe Programs give me inconsistent numbers when covert to CMYK from Pantone Pantone+ Solid Coated?
    I need help on figure out how to have exact number value when I use 3 programs, Adobe InDesign CS6, Illustrator CS 6,
    And PhotoShop CS 6, and use PMS Swatch from Pantone+ Solid Coated in each program, and convert Pantone Color to CMYK,
    the numbers are different significantly. I attached the example of how I converted PMS 424C to CMYK to illustrate.

    In CS6 and later the conversion of Pantone+ Solids to CMYK is color managed (Lab to CMYK), so the document's assigned CMYK profile and the app's Color Settings Conversion Options (Intent and Black Point Compensation) affect the conversion numbers and have to be matched up.
    So below the assigned profile is Coated Fogra39 with a Relative Colormetric Intent and BPC turned on (the slight differences are because of the way the 3 programs round):
    I think InDesign has a problem with color conversions via the Color panel, so I'm showing the InDesign Sep Preview panel with All Spots to Process checked in Ink Manager on the right. Changing the document's CMYK profile assignment doesn't reliably produce the correct conversion via the Color panel—looks like a bug and I haven't checked CC to see if it's been fixed.
    Here is what I get with a conversion via the Color panel. l'm not sure where these numbers are coming from but it's not the right conversion to Fogra39:
    The tool bar's Color Picker does make the correct conversion, so I think the problem is limited to the Color panel
    The simplest approach is to leave Pantone Solids as spot colors and use Ink Manager to make the conversion when you export or print.

  • CMYK and RGB with a laser printer

    I'm using ID CS2 and a Konica Minolta bizhub C353P printer.
    I was supplied with a pdf artwork file by a customer. I believe it's CMYK, but am not sure, as Document Properties in Acrobat doesn't give that information. Firstly, is there a simple way of checking whether a pdf file is CMYK or RGB?
    I placed the pdf artwork into ID and printed the indd file, but found that the colours were not quite correct. So I imported the original pdf file into Photoshop and changed it from CMYK to RGB. I then saved it as a tiff file and placed it back in the indd file. The colours now printed correctly. Next question - is there a better way of converting a pdf file from CMYK to RGB and vice versa?
    When I printed the indd file the print driver would only allow me to print in Composite RGB - Composite CMYK and all the other options were greyed out. However, if I printed to Acrobat, Composite CMYK and the other options were available. Now as I'm printing to a CMYK laser printer, I would have thought it better to print in Composite CMYK. Am I correct?
    And can anyone suggest why the printer driver won't allow it?

    Edward
    here are some useful operations by Professional Acrobat 7:
    How to analyze image color spaces in a PDF:
    Tools > Print Production > Preflight > Digital Press (Color) >
    Execute > Overview > Images.
    How to convert images in a PDF (here DeviceCMYK to sRGB):
    Tools > Print Production > Convert Colors > Device CMYK:
    Convert > Profile > sRGB > Embed as Output Profile > Execute
    IMO there is no choice for an input CMYK profile.
    I don't know whether embedded profiles (not to be expected
    for CMYK) or a global Output Intent are honoured.
    How to edit images without loading the whole PDF in
    Photoshop (which would rasterize everything):
    Tools > Advanced Editing > TouchUp Object Tool > Right Mouse
    Click on Image > Edit Image > (Opens Image in PhS) >
    Edit here > Save > Close (Shows PDF with modified Image) >
    Save As by new name.
    Best regards --Gernot Hoffmann

  • Converting cmyk to rgb

    I have about 200 .psd files with a customized CMYK profile (used for press) that I have covert to Adobe RGB (1998).   Amazon recommends this for Look Inside, because CMYK fails when they OCR the PDFs.
    The only way I know to do this is one .psd at a time. Is there a way to streamline this in Bridge or PS other than using keystroke shortcuts (which I alrady do)?
    Thanks in advamce.
    Toni

    Outstanding. Thank you so much! Ninty files done in a flash, 150 to go. Now if I could just get something simialr to work on my 300+ Illustator files!
    Cheers,
    Toni

  • CMYK and RGB Issues between PS and AI

    I also posted this in the AI forum, not sure if people look at both. If this is taboo, sorry.
    Greetings
    I am using AI and PS CS5.
    I have an eps in AI that is set for RGB. The colors are how I want them.
    When I open the same eps in PS, PS thinks the file is CMYK. Whether I open the file as CMYK and convert to RGB or open at RGB, the colors shift. If I leave the file as CMYK, the colors are shifted.
    I can confirm that when I convert the file in AI from RGB to CMYK, I can see the color shift. If I leave the file as RGB in AI, it looks how I want.
    I cannot get the file to show in PS as the same color as what I see in AI.
    I have confirmed that both AI and PS have color settings set to NA GP2.
    I am hoping this is something simple and someone can help me out.
    I hope this helps explain:
    http://img170.imagevenue.com/img.php?image=576032284_colorshift_122_52 4lo.jpg
    Basically, the file with AI in RGB mode looks how I want. The file with AI in CMYK mode looks different.
    In PS, both RGB and CMYK color mode are the same as CMYK in AI.
    I am not sure why PS does not show the RGB colors like AI does.
    PS CS5 and AI CS5 are synched:
    http://img157.imagevenue.com/img.php?image=586919644_colorsync_122_199 lo.jpg
    I think this is a PS issue? Thanks in advance.

    File -> Document Color Mode -> RGB is the default when the EPS is opened in AI. This displays what I want.
    When the EPS is opened in PS, the default is CMYK. Whether I change it to RGB there or import as CMYK and then change the mode to RGB, the colors do not change. In PS, they look like what I see when in AI when the EPS is set to CMYK, if do this: File -> Document Color Mode -> CMYK. 
    So in PS, whether I have mode set to RGB or CMYK, it looks the same.
    And in AI, based on the setting Document Color Mode, I can see the difference.
    How do I get what I see in AI in RGB mode to appear in the same EPS in PS?
    Thanks

  • Change swatches from CMYK to RGB

    Okay so I've just realised that my documents are CMYK and have changed the settings to RGB (File > Document color mode > RGB and from the colour fly out menu) although I notice that when I hover my mouse over the colors in the swatches panel that it shows me the CMYK values.
    Could someone please assist me with this as I'm not sure why this is happening.
    Thanks in advance

    to change color definitions--from the 'color' menu select the flyout menu in the upper right corner (indicated in attached pics) and change from cmyk to rgb

Maybe you are looking for

  • DropShip Order: How does update on OE Line flow to PO Requisition?

    Hi All, This is in 11i (115.10.2) I have a scenario where we might need to interrupt and customize the functionality where the updates from OE DropShip Line flow to PO Requisition (Please note PO Order is not created yet). My question is: How does th

  • Invalid cursor error in procedure

    i am writing a procedure in which i have make use of cursor........it is giving me error INVALID CURSOR on running i have used this cursor with WITH CLAUSE.... when i am executing or running this procedure this giving me invalid cursor error create o

  • Regarding Report creation in BI

    Hi, I have created new sample schema in BI Reportsitory. It is display in BI Dashboard .But when i try to see result of the report that time i got following error. -------------------- Query Status: Query Failed: [nQSError: 17001] Oracle Error code:

  • Esata port multiplier explaination please

    I am looking for some advice about an esata enclosure setup. I would like to move into a multiple drive array for FCP and would like to know how the port multiplier works. I already have figured out that hardware RAID is superior to software RAID. My

  • Why customer exit not call  ?

    i had imp customer exit 'MBCF0007'     use  CMOD When  i use Tcode 'MB21'  , it  work  ,but when  I use  "CALL TRANSACTION 'MB21' USING TABLE_BDC" in abap programm, it does not  work. why? pls  help thx Edited by: yudong Geng on Dec 11, 2008 4:16 PM