Script to convert RGB values to CMYK values

I want a script that can help me convert RGB value to CMYK values.
I've seen this thread which explains a script to round up and down:
http://forums.adobe.com/thread/1079041
but is there a script that i can actually define lets say the colour is yellow and in RGB it looks ok because its in RGB mode so you change it to CMYK and you have 6% - 9% cyan and you only want yellow
is there a script out there that i can say
if
cyan = 6%
yellow = 80%
magenta = 0%
black = 0%
then change to
cyan = 0%
yellow = 80&
mangenta = 0%
black = 0%
I don't mind writting the code for each colour that needs to be converted as it would only need defining once but how would i make this script?
any clues?

Hi Carlos,
I've got a bit further with applescript as i've used it a little but i've got an error this is my code so far:
tell application "Adobe Illustrator"
          if exists color is equal to "C=0 M=0 Y=0 K=90" then
                    set color to "C=0 M=0 Y=0 K=100"
          end if
end tell
The error i'm getting is "can't get color"
the color is there however i believe i must not be using the correct variable any clues?

Similar Messages

  • Is there as easy way of batch converting RGB files to CMYK in OS Lion?

    Is there as easy way of batch converting RGB files to CMYK in OS Lion?
    I was using a photoshop droplet on my desktop but this no longer works due to the fact it requires rosetta support.
    Thx P

    From another forum after googling:
    Your computer came with everything you need, because ColorSync can do that and Apple provided AppleScripts for it. Go to your Applications folder and look for the AppleScript folder. Double click on the 'Example Scripts' alias and then open the ColorSync scripts. Drag and drop your images on the the 'Match to CMYK' script.
    You can open AppleScript Editor from Launchpad (it's in Utilities). Go to Help to Open Example Scripts Folder. In the ColorSync folder is a Match application. Double click to make it run.
    Now you know what it does you may need to change it for batch conversion.
    Go to AppleScript Editor and open what you've just found. And I'm sorry that's as far as my knowledge goes, hope some one can fill in the gaps.
    Or you may just want to look at something like Graphic Converter?
    Regards,
    Colin R.

  • How to batch convert RGB images to CMYK

    Hello,
    Can anyone explain in a step-by-step way how to batch-convert many RGB images to CMYK?
    Thanks in advance

    If you do want to use Photoshop for the bact conversion there are a few ways, including Batch and Image Procesor under the File>Automate or File>Scripts of PS.
    However, my preference is to use Russell Brown's script: Image Processsor Pro, via Bridge:
    http://www.russellbrown.com/scripts.html
    As similar one is Picture Processor:
    http://www.scriptsrus.talktalk.net/
    Both allow you to do multiple conversions simultaneously, to different sizes and file types, and running actions before or after the conversions.

  • Converting RGB PDF to CMYK PDF

    I'm looking for a way to convert RGB PDF's to CMYK PDF for printing purposes. The RGB PDF is created by an online Flash application and I'm hoping to convert the file using Acrobat via Command line. I have tried a couple of programs e.g. PStill and PDFcreator but these just don't do the job. It's important to use the command line due to the fact that the conversion must be done automatically on a dedicated server.
    Important to know is that the PDF consists of texts and images and gradients. This is a RGB example which I would like to convert. This is the CMYK output I have created manually.
    Other solutions next to Acrobat are also welcome as long as they do the job

    In your original message you say "the conversion must be done automatically on a dedicated server" - this implies that Acrobat is being used outside the EULA, which strictly forbids installation as a server process. Acrobat is licensed for individual interactive desktop use by one person, no other deployments are allowed.
    You cannot access Acrobat's editing and batch-processing functions from the commandline at all. Adobe has server-based solutions for PDF generation  (LiveCycle ES3) but they are extremely expensive and would need work to get them to do what you're looking for. Realistically, your Flash developer needs to recode his app to output in CMYK or you will need third-party software on the server to re-fry the files. I don't know of any off-the-shelf commandline tools which can perform color conversion on existing PDFs.

  • Converting RGB pdf to CMYK in acrobat 8 professional

    Hi Can anyone tell me why when i convert an RGB pdf to CMYK using convert colours in Advanced/Print production the image resolution changes as in you get a haze around the text etc!! it looks like the pdf was created in photoshop or the original image was from photoshop could it have anything to do with jpeg compression?? if so how can i get round this in acrobat i dont want to have to save as postscript and pdf it again in distiller everytime!!
    thanks
    whitey!!

    Hi Jon
    Sorry its been so long!!
    do you have an email i could send the before/after too??

  • Convert RGB black to CMYK black

    PHOTOSHOP CS5
    I have a complex black-ink line drawing in large precentages of C, M, Y, & K. I'd like to somehow SELECT ALL PIXELS and zero out all but 100% K.
    I cannot figure out how to select all (nonbackground) pixels (no, Select>All does not accomplish) and then make them all 100%K, can you help?

    Yes, I need to end up CMYK. As you can see by my sample Photoshop converts RGB to crazy-high CMYK percentages. All I want these lines and text to be is 100% K.

  • Acrobat 8 - Settings to convert RGB colours to CMYK

    Hi,
    I create A1 & A0 size maps as adobe pdfs. The mapping software I use will only allow me to select R G B colours which is fine and produces the maps with the exact colours I want. However, when I want to print my pdf maps the large format printers I have access to always want to convert my RGB colours to CMYK which makes the colours dull on the printed map compared to the pdf. Are there any settings that I can alter in Acrobat 8 which will convert the RGB colours to CMYK during the pdf creation process. I will then be able to alter my RGB colours if necessary to get the right end result. I am not super technical so if there is a reasonably simple solution that would be great.
    Thank you for any help you may be able to give.
    Stephen Kilbee in the UK

    I think you will have to copy the watermarks and such to the corresponding folders in AAXI. I do not think that they will migrate in the way that you are thinking. It may take a bit of time to find the appropriate folders and files, but this is likely how I would try it. I was not concerned about it myself and did not try to copy such things.

  • Help converting RGB Images to CMYK?

    I am working with a CMYK Freehand design, and it includes a
    cut out image on top layer. The image is in RGB. When I export it,
    I am getting a colour shift on the transparent areas.
    Should I be working with a CMYK cut out image? If so, how do
    I convert my RGB image to CMYK, keeping the transparent areas of
    the cut out?
    Help much appreciated (ASAP)
    Regards
    Geoff

    GmR wrote:
    > I am working with a CMYK Freehand design, and it
    includes a cut out image on
    > top layer. The image is in RGB. When I export it, I am
    getting a colour shift
    > on the transparent areas.
    >
    > Should I be working with a CMYK cut out image? If so,
    how do I convert my RGB
    > image to CMYK, keeping the transparent areas of the cut
    out?
    >
    > Help much appreciated (ASAP)
    > Regards
    How are you creating the transparent areas? Are you using an
    alpha
    channel in the bitmap? I stopped doing that when I noticed
    color
    shifting (even in grayscale reproduction) similar to what you
    get when
    using the raster effects. But I do miss using it because it
    is
    convenient and sets up nicely.

  • How to make a script to convert RGB to CMYK as black 100%?

    Hi guy
    my customer sent me a book (144 pages) for print but all of them are RGB and Tiff, she scan them. there are on the page some texts and pictures. The text are R=30 G=30 B=30.I think if I can make a script I will do it very soon to black 100%, but unfortunately I dont know anything to make script 
    anybody can help me ?anybody can make it for me ?

    We need to know some more information.
    1. The book consists of 144 pages, and each page is in fact an RGB image in TIFF format.
        Correct?
        That means, the text is already rasterized, but with low resolution (no more than 300ppi).
        A very bad starting point, in my humble opinion. For offset printing this is not acceptable.
    2. Is the printing process offset printing or by digital printing?
    Nevertheless we may think about a conversion of these images into CMYK K-only (one plate
    per page) . 
    a) Increase contrast until R=G=B=0 for text.
    b) Convert each image into Grayscale, using a so-called Black-Ink-Profile, for instance
        Black-Ink-ISOCoated-v2-eci (can be explained later)
    c) Make empty CMYK image, here for  ISOCoated-v2-eci, and paste the Grayscale into the
        K-channel. All further handling happens as CMYK file for the process ISOCoated-v2-eci.
        Void plates CMY don't matter.
        Post #12 here:
        Re: Colour shift (from CMYK = 0 0 0 20 to Grayscale K = 22 !)
    All this can be done by an action (I hope so...).
    Much better would be a new start by InDesign with typographical text (K-only vector instead of raster)
    with images in RGB or CMYK, taking into account the intended process.
    Note: Photoshop can deliver vector text, if exported as PDF.
    Best regards --Gernot Hoffmann

  • CS2 Convert RGB Images to CMYK Within Illustrator

    Hey everyone. I desparately need some help here. I designed a file in Illustator CS2 and my file had images within it. I took it to a professional printer and he said my images needed to be converted from RGB to CMYK to print properly. The printer had CS4 and he said to change the colours you click on Edit -> then Colours, which in turn allowed him to change the pictures format from RGB to CMYK. I only have CS2 and when he told me to select Edit and then Colours, well CS2 does not have that. It's something completely different.
    If someone out there knows how to change the picture files from RGB to CMYK "within" Illustrator CS2 could you please tell me how as Adobe's phone support only deals with the most current version.
    Any help you can provide me with, would be greatly appreciated!
    Thanks in advance,
    Julie

    >This is for my benefit as I have just purchased a colour laser printer and wanted to be able to print something proper like the professional printer.
    Unless you have a PostScript RIP for your laser printer (a separate driver provided either by your printer manufacturer or a third party) you cannot proof CMYK documents directly. Lacking a PostScript RIP, you can still get a pretty good idea if you have Acrobat. Print to PDF using settings that convert to, say, sRGB... then, print that PDF document on your laser printer (using its native non-PostScript driver).
    For your older documents, if your placed RGB images are embedded (rather than linked), you can try Philip's suggestion. It shouldn't matter, though. Illustrator should do the necessary space conversions at print-time.
    If the images are linked, I would suggest you convert them to CMYK in Photoshop. I'm sorry, but I do not know of a way to do the same thing within Illustrator (v12 aka CS2).

  • Convert from spot color to custom CMYK value in Applescript

    I thought this would be very simple and it's not apparently. I am trying to convert a spot color into a custom CMYK value. Basically:
    tell application "Adobe Illustrator"
              set theList to every path item of current document
              repeat with k from 1 to count of theList
                        if fill color of item k of theList = {name:"Dark Green"} then
                                  set fill color of item k of theList to {cyan:0.0, magenta:100.0, yellow:0.0, black:0.0}
                        end if
              end repeat
    end tell
    But this script obviously doesn't work. From what I can tell, the fill color simply returns the tint of the item, not the name of it. I can't find anything that returns the name of a spot color so I can set the correct corresponding color. In the above example, I made the color obviously changed so I could visually see the result.
    Any advice would be greatly appreciated! I'm a first time poster here.
    Thanks!

    tell application "Adobe Illustrator"
              tell current document
                        set theList to every path item
                        set sw to every swatch
                        repeat with i from 1 to count of sw
                                  set swname to name of item i of sw
                                  if swname = "Dark Green" then
                                            set swco to color of item i of sw
                                            repeat with k from (count of theList) to 1 by -1
                                                      set co to fill color of item k of theList
                                                      if swco = co then
                                                                set fill color of item k of theList to {cyan:0.0, magenta:100.0, yellow:0.0, black:0.0}
                                                      end if
                                            end repeat
                                  end if
                        end repeat
              end tell
    end tell

  • Why does Illustrator automatically change RGB and CMYK values

    Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
    But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
    I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
    The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
    Very confusing.
    Thanks in advance if you can explain this behavior!
    Best Regards,
    Z.

    Color management.
    Hi, I am struggling to understand why Illustrator is changing the values inside the RGB and CMYK boxes. I am also not sure of the exact relationship between these values. Essentially, it appears that if you set the Document Color Mode to RGB, it leaves the RGB values that you type in alone. If you set the Document Color Mode to CMYK, it leaves the CMYK values alone.
    An Ai document can be either RGB or CMYK. The colors follow the document color mode and thus are converted immediately if they don't match.
    But as soon as you change the Color Mode, it automatically modifies the values. So if you were in RGB mode and you set some RGB values, it changes those RGB values when you switch to CMYK mode. And vice versa.
    Same reason.
    I had thought that the CMYK palette was a subset of the RGB palette. It would make sense to me if it did this when I switched from RGB to CMYK mode, but it doesn't make sense to me why it does this when I switch from CMYK to RGB mode.
    It's not. CMYK color spaces (there are more than just one) are normally smaller than RGB color spaces, but they aren't a "subset".
    The other thing I am confused about is the relationship of the values in the RGB boxes to the values in the CMYK boxes. I would have thought that the relationship between them would be static. Actually, it is not. When I am in CMYK mode and I enter a CMYK value of 90 16 0 0, the RGB values become 0 158 222. But when I switch over to RGB mode, the RGB values of 0 158 222 result in CMYK values of 75 23 0 0.
    When Illustrator converts the colors, it uses color management: the profiles you set up and the methods you set up. After converting it forgets the color that used to be. When converting "back", it uses color management again.
    When you convert an very bright RGB color, it be out of the CMYK gamut. So it get's converted to the closest possbile CMYK color (which might still be far away from the original color. But it's not possible to convert it "back" to the bright one unless you just revert the conversion (by Cmd/Ctrl + Z).

  • Script to Change swatch CMYK values

    Are there any scripts available to change CMYK values of swatches for files in CS3?
    I have hundreds, probably thousands of Illustrator EPS files that use swatches all drawn from a total palette of maybe 50 colours.
    Each colour is named and has a corresponding CMYK value.
    I want to update the CMYK values for all ~50 colours that appears across all these documents. Is there some way I can simply change the CMYK spec of the swatches used by each of these documents by not having to manually open and change the colours etc?
    Even a script would be good that could batch process the files?
    For example:
    File contains a swatch as a named colour like:
    Fire Red spec'd as 0, 96, 99, 0
    I want to automate changing the CMYK values for all files containing Fire Red to, say, 0, 98, 99, 0
    Any ideas? I have searched Google for a couple of days.
    Edit: the flavour here is Illustrator for CS3 - both Win and Mac.

    I understand EXACTLY what you mean as it's the same thing I need to do, and will probably need to do on future occasions.
    Did you get anywhere with this problem?
    I have designed a scheme for a textbook I am illustrating (this is what I do for a living and have been doing so for well over a decade using Illustrator).
    All colours used in every illustration are based on 7 CMYK Global swatches, usually 100% tints but also 50% 75% and others when required.
    Anyway I have done 100 illustrations already based on my template when I realize I'm going to have to darken the green by +10% cyan.
    What I need is a script to change the definition of my global 'green' swatch in every document from 100Y 30C to 100Y 40C.
    Actions won't do it.
    Any suggestions?

  • Why can one spot colour convert into two different sets of CMYK values?

    Working within Illustrator CC, I have an EPS file of a logo which has a colour fill value of:
    Pantone 152 U
    CMYK: 0C 51M 100Y 1K
    When I copy and paste this into a new document I get a much duller colour (orange) with colour values of:
    Pantone 152 U
    CMYK: 2C 57M 83Y 2K
    I have enabled 'ask when opening' & 'ask when pasting' for Profile Mismatches in Edit->Color Settings->'Color Management Policies' - no warning shows up.
    I have also tried turning off, changing color management policies.
    I've opened the original eps file and assigned my working space profile (Coated FOGRA39) and then try copy and pasting without success.
    Help!

    In addition to John's useful comments:
    Using Pantone 512U (uncoated) isn't correct for Coated Fogra.
    Why can one spot color convert into two different CMYK sets if converted by the user?
    Assumed, the one spot color is uniquely defined by one Lab set:
    – the CMYK spaces are different
    – the CMYK spaces are the same but the Rendering Intents are different
    – the CMYK spaces are the same but the Black Point Compensations are different
       (on or off for Relative Colorimetric).
    Assumed, the spot colors are equal by name, but valid for different versions, both in Lab:
    – this obviousl at present the most common source of deviations.
    Assumed, the spot colors are defined by CMYK:
    – a chaotic situation which I wouldn't even like to dicuss.
    – CMYK to CMYK conversions should be avoided under all circumstances.
    The solutions:
    If the spot color will be printed always and everywhere by Pantone spot ink:
    – purchase an actual Pantone color fan und discuss with the printer the mixture for the selected ink.
    If the Pantone color is merely a design feature, but the doc will be printed by CMYK:
    – choose such a color and verify by soft proofing that the color is in-gamut for common CMYK spaces. 
    – read the Lab values and proceed as far as possible using Lab.
    – don't use ink names, don't use any reference to Pantone.
    – convert into to a specificic CMYK space in advance to the generation of the specific PDF.
    Best regards --Gernot Hoffmann

  • CMYK value "very" different look

    I hope somebody here has an answer for me in this matter, because i am close to getting crazy.
    I always use AdobeKULER for getting the values of RGB, CMYK and HEX for my logo designs made in AI.
    Usually, i design a Logo in RGB first and convert it then as well into CMYK colors, using the values i get with KULER.
    The CMYK color version of a design when viewed on my monitor normally look lighter (less dark) than the RGB version, but this time it is much darker.
    I am trying to figure out where the problem is, but till yet i found no solution.
    The RGB value in question is:   0  216  235
    The CMYK value KULER shows is:  100  8  0  8
    really hope, somebody can help me with this.
    Thanks in advance,
    Peter

    Hey Peter,
    Here are thoughts, so I created a new swatch in Illustrator CS5 with the RGB values of 0 216 235 in an RGB document and then converted that document to CMYK. The resulting CMYK values ended up being 61 0 13 0 versus the 100 8 0 8 which Kuler showed. So this tells me that the RGB conversions on the Kuler webpage use a different formula for doing the conversion versus what is done in Illustrator. Based on my experience, its not uncommon to see color shifts for colors which look slightly darker or washed out with this kind of conversion, because of the differences in gamuts between the two color spaces. For colors that fall outside of the gamut of one space, the closest equivilent in the other may vary based on the formula used. Different conversions aim for accuracy in different ways, closest match for tonal value, closest match for saturation, etc.
    see sRGB versus CMYK in the following image
    http://www.waleedsgallery.biz/_forumuploads/colorspaces.gif
    I guess the question I would have for you is what are you doing with the logos you create, are they used for webpages, commercial printing or both? I would probably start with the color space related related to your output and be aware that shifts with conversions are expected. If you are printing these yourself on a home printer just working in RGB and letting the printer driver do the conversion often gives good results as the driver knows the specifics of that piece of hardware and its capabilities.
    Hope that helps,
    -Dave

Maybe you are looking for

  • HTTP Response Status Codes: GET (retrieve), POST (create), PUT (modify), and DELETE (REST, Bulk, Any API)

    Many of us, who are starters, starting to wonder when reading any API documentations or starting out with your first program built to make any of the API calls, what do all error codes means, when I get many different types of response from running t

  • My iChat video conference seems to be malfunctioning.

    Every time I want to send a picture to the video conference, all I see is a black screen. Who ever is on the video chat with me also sees this black screen instead of the picture. I've tried to send differnet pictures, restarting iChat, restarting my

  • Image Deployment to Remote Computers

    I know that officially Microsoft doesn't support remote image deployment. I was working for a larger consulting company a few years back. The internal IT staff was working on deploying images to remote laptops of the consultants when a refresh (In-Li

  • Basic  Oracle question

    What should be the best approach for updating a table remotely? Say we have one database in JAPAN and one in US. we need to update one table column in JAPAN database from here. What we have done: We have created a synonym of that table here (using da

  • Droid 2 Global Update..?

    Okay, so i keep hearing all of these different things, there will be an update for D2G, there won't, Gingerbread will come to D2G, it won't... I'm so confused. I really am hoping that there will be an update for this phone sometime soon, and with the