2 Replies Latest reply on Mar 30, 2015 2:37 PM by Michael Witherell

    Changing a batch of pictures RGB to CMYK in InDesign or Photoshop

    peregrinocarlos

      Also, I do not know if you can help me with the following, I need to find help in regards to changing RGB pictures to CMYK (60 pictures or more) from an InDesign file without having to do it one by one manually in Photoshop?

        • 1. Re: Changing a batch of pictures RGB to CMYK in InDesign or Photoshop
          rob day Adobe Community Professional & MVP

          You can make the same conversion to CMYK you would get in Photoshop when you export to PDF or print separations. You set the CMYK destination profile in the Output tab of the Export dialog. You can also customize the Rendering Intent for different images via Object>Image Color Settings. Or you can leave the images as RGB and let your printer handle the conversion to CMYK at output.

          • 2. Re: Changing a batch of pictures RGB to CMYK in InDesign or Photoshop
            Michael Witherell Adobe Community Professional

            #target indesign

            //a script to convert RGB images to CMYK images

            //save this script as a jsx file and install into InDesign

            //be sure to run this script on a copy of your files as it overwrites the originals

             

            var doc = app.activeDocument,

            links = doc.links,

            i, link, image;

             

            UpdateAllOutdatedLinks();

             

            for (i = links.length-1; i >= 0; i--) {

                link = links[i];

                if (link.status == LinkStatus.NORMAL) {

                      image = link.parent;

                      if (image.space == "RGB") {

                          CreateBridgeTalkMessage(link.filePath);

                      }

                }

            }

             

            UpdateAllOutdatedLinks();

             

            //== Functions ==

            function CreateBridgeTalkMessage(imagePath) {

                var bt = new BridgeTalk();

                bt.target = "photoshop";

                bt.body = ResaveInPS.toSource()+"("+imagePath.toSource()+");";

                bt.onError = function(errObj) {

                      $.writeln("Error: " + errObj.body);

                }

                bt.onResult = function(resObj) {}

                bt.send(30);

            }

             

            function ResaveInPS(imagePath) {

                var psDoc;

                app.displayDialogs = DialogModes.NO;

                psDoc = app.open(new File(imagePath));

                  psDoc.changeMode(ChangeMode.CMYK);

                  psDoc.close(SaveOptions.SAVECHANGES);

                app.displayDialogs = DialogModes.ALL;

            }

             

            function UpdateAllOutdatedLinks() {

                var link, c;

                for (var c = doc.links.length-1; c >= 0; c--) {

                      link = doc.links[c];

                      if (link.status == LinkStatus.LINK_OUT_OF_DATE) link.update();

                }

            }