Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Looking for a way to batch change color space across multiple documents

Return to Member Forum

  • Author
    Posts
    • #14367951
      L D
      Participant

      Hi, I’m seeking a way to change the color space across multiple INDESIGN docs from CMYK to RGB, is there a way to do this? or am I stuck going through each one at a time? thanks so much!

    • #14367966
      David Blatner
      Keymaster

      I’m not sure what you mean by changing the color space. Which color space? The “Intent”? The color swatches? The images inside the document? Can you give some insight into why you need to do this?

      In the meantime, here are a couple of articles that might be of interest:

      Converting CMYK to RGB with InDesign


      and

      Turning RGB Black to CMYK Black

      • #14367968
        L D
        Participant

        Hi David,

        I think maybe the term is “color model” rather than space? The intent of the document is for screen display, so it will be in RGB. Typically when I set up indesign files for that, I set my Transparency Blend Space to RGB. This time, I created about 40 that I set to CMYK, so I was hoping there was a quick way to change them all to RGB. But now that I think about it, I don’t think the art will contain any transparencies, so maybe it doesn’t matter what transparency blend space the doc is in? As long as all objects/images are in RGB?

        hope that clarifies!

        Thank you

    • #14367983
      David Blatner
      Keymaster

      Ah! Transparency Blend Space. I understand now. I don’t know of any way to change that across multiple documents, though I’m sure a script could be written to do it. (But for just 40 files, it’d be faster to just do it manually.)

      Does it matter if you change this? Not necessarily. Though if you’re exporting to RGB then ID will probably complain that it’s in the wrong blending space each time you export.

      More here:

      My Grayscale Images and Colors Changed Suddenly

    • #14367984
      L D
      Participant

      thanks, that makes sense!

      And thanks for that link, I understand how that works better.

    • #14368649
      Masood Ahmad
      Participant

      You can try this one liner to change the Transparency Blend mode to RGB

      app.documents[0].transparencyPreferences.blendingSpace = BlendingSpace.RGB;

      save this code as a ‘[name].jsx’ JavaScript file and run it using the batch export utility on the folder containing your 40 files.

      https://creativepro.com/files/kahrel/indesign/batch_convert.html

      Hope this will help.

    • #14389218
      Dan Iorgulescu
      Participant

      Hi!

      I have a little problem with an Apple Script that collects and export pdfs with different pdf presets. One of my client wants that the pdf that is posted on the web to have the Brand RGB color (255,100,0) and those for print the a specific CMYK version of it (0/75/100/10). I tried to convert the swatch via

      set NewColor to “255,100,0”
      set NewColor to run script “{” & NewColor & “}”

      tell active document set color value of swatch “Brand Color CMYK” to NewColor
      –or
      –set properties of swatch “Brand Color CMYK” to {model:process, space:RGB, color value:NewColor}
      end tell

      but I get

      “Adobe InDesign 2023 got an error: Can’t set color value of swatch “Brand Color CMYK” of active document to {255, 100, 0}.”

      Also I tried to find a way to replace via scripting grep but no success. :(

      any hint? Thanks a lot!
      Dan

      • #14389300
        David Blatner
        Keymaster

        I would like to point out that converting RGB to CMYK (or vice versa) is rarely that straightforward. You need to ask “which RGB” and “which CMYK” for there are many.

        My guess is that the best solution would be to export an RGB CMYK and then use Acrobat to convert it to CMYK.
        Or use InDesign’s built-in conversion tools to export a CMYK PDF, as we discuss here:

        Why You Should Import RGB Images Into InDesign and Convert to CMYK On Export

Viewing 5 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads