3 Replies Latest reply on May 30, 2017 3:51 AM by nilesh ricci parmar

    Combining Photoshop Image Processor Pro scripts

    nilesh ricci parmar

      Hi, any one know how to combine several Photoshop Image Processor Pro scripts one after another? I tried putting the code altogether in extend script but it eventualy became a mess and wondering if im missing anything that one of these programs can do swiftly.

        • 1. Re: Combining Photoshop Image Processor Pro scripts
          c.pfaffenbichler Level 9

          You may not have provided enough information for a meaningful answer.

          What is

          combine several Photoshop Image Processor Pro scripts one after another

          supposed to mean exactly?

          • 2. Re: Combining Photoshop Image Processor Pro scripts
            JJMack Most Valuable Participant

            https://forums.adobe.com/people/nilesh+ricci+parmar  wrote

             

            Hi, any one know how to combine several Photoshop Image Processor Pro scripts one after another?

            Do you realize the the Image Processor Pro is a Photoshop Plug-in.  You can record using it in an action.  When you do The Image Processor Pro will record the setting you used recording the action Into you Actions step.   When you Play you action. The Image Processor Pro step will pass the recorded settings to the Images Processor Pro , Image Processor pro will bypass displaying its dialog and use the the setting passed  to and process accordingly.   So if your sequential use of the image processor pro  always use the same setting you could just record and action with a sequence of Image Processor Pro steps.   When Played the steps would play without needing your intervention for Image Processor Pro would bypass displaying its dialog and process with the setting passed.

             

            If your sequence can not always be done with the same settings.  A Photoshop script could pass the required setting to the Image Processor Pro plug-in like actions do.  However, You would need to ask X how to pass the setting.  The Action step recorded the the Image Processor Pro step looks like and empty step in a recorded action.  I have no idea what the Image Processor Pro plug-in recorded into the seemingly empty step.   I would imagine it would look like XML.  Image Processor Pro uses XML for its settings... Default settings are installed along with the script." Image Processor Pro.jsx" and "Image Processor Pro.xml"

             

            Image Processor Pro has a limit of 10 output sets of images and I have had problems recording actions that has 10 output sets in CC 2017.  They record fine in prior versions of Photoshop and these play fine in CC 2017.

             

            <?xml version="1.0" encoding="utf-8"?>
            <ImageProcessorProSettings>
              <input source="folder"/>
              <output path="~/Desktop/Output Folder" subfolder="true" keepStructure="false" retainOrignal="true"/>
              <taskList>
                <task enabled="true" subfolderName="Set 1" colorProfile="sRGB IEC61966-2.1">
                  <saveOptions fileSaveType="jpg" jpgQuality="10" jpgEmbedColorProfile="true" jpgFormat="Standard" saveForWeb="false"/>
                  <resizeOptions enabled="true" width="800" widthUnits="pixels" height="800" heightUnits="pixels" resolution="72" resolutionUnits="pixels/inch" scale="true" resampleMethod="bicubic"/>
                  <action enabled="false" when="Before Image Resize" set="Default Actions" name="Sepia Toning (layer)"/>
                  <namingOptions startingSerial="1">Name,lowerCaseExtension</namingOptions>
                </task>
                <task enabled="true" subfolderName="Set 2" colorProfile="Same as Source">
                  <saveOptions fileSaveType="tiff" tiffByteOrder="MacOS" tiffEncoding="None" tiffEmbedColorProfile="true"/>
                  <resizeOptions enabled="true" width="1200" widthUnits="pixels" height="1200" heightUnits="pixels" resolution="240" resolutionUnits="pixels/inch" scale="true" resampleMethod="bicubic"/>
                  <action enabled="false" when="After Image Resize" set="Default Actions" name="Vignette (selection)"/>
                  <namingOptions startingSerial="1">Name,lowerCaseExtension</namingOptions>
                </task>
                <task enabled="true" subfolderName="Set 3" colorProfile="Same as Source">
                  <saveOptions fileSaveType="psd" psdAlphaChannels="true" psdEmbedColorProfile="true" psdLayers="true" psdMaximizeCompatibility="true"/>
                  <resizeOptions enabled="false"/>
                  <action enabled="false" when="After Image Resize" set="Default Actions" name="Vignette (selection)"/>
                  <namingOptions startingSerial="1">Name,lowerCaseExtension</namingOptions>
                </task>
              </taskList>
              <preferences/>
            </ImageProcessorProSettings>
            

             

             

            You  would also most likely  need to use its UUID 611736f0-9c46-11e0-aa82-0800200c9a66 to run the Image Processor Pro from a scrip a pass the XML settings.

            #target photoshop
            //
            // ImageProcessorNG.jsx
            //
            // $Id: ImageProcessorNG.jsx,v 1.166 2016/02/02 23:42:20 anonymous Exp $
            // Copyright: (c)2015, xbytor, Adobe Systems, Inc.
            // 2011-03-21
            // Written by xbytor@gmail.com
            //
            // 03/13/2012 10:30, tpr
            // tpr, this needs a lot of work to get localized,
            // talk to Alice about having magic numbers localize team can use
            // vs talk to X about why auto layout failed and the need for a 
            // major re write to use auto layout
            // c2007 Adobe Systems, Inc. All rights reserved.
            // Produced and Directed by Dr. Brown ( a.k.a Russell Preston Brown )
            // Written by Tom Ruark and Mike Shaw
            // UI Design by Dr. Brown
            //
            /*
            // BEGIN__HARVEST_EXCEPTION_ZSTRING
            
            
            <javascriptresource>
              <about>$$$/JavaScripts/ImageProcessor/About=Image Processor Pro^r^rCopyright 2012 Adobe Systems Incorporated. All rights reserved.^r^rProcesses multiple input and output files.^rNOTE:It's better than the Image Processor!</about>
              <category>DrBrown</category>
              <name>$$$/JavaScripts/ImageProcessor/Name/ImageProcessorPro=Image Processor Pro...</name>
              <menu>automate</menu>
              <eventid>611736f0-9c46-11e0-aa82-0800200c9a66</eventid>
              <terminology><![CDATA[<< /Version 3.2
                /Events <<
                   /611736f0-9c46-11e0-aa82-0800200c9a66 [($$$/JavaScripts/ImageProcessor/Name/ImageProcessorPro=Image Processor Pro...) /imageProcessorProSettings <<
                       /ImageProcessorProSettings [(ImageProcessorPro Settings) /typeText]
                       /Msge [(Message) /typeText]
                     >>]
                 >>
               >>
            ]]></terminology>
            
            
            </javascriptresource>
            
            
            // END__HARVEST_EXCEPTION_ZSTRING
            */
            
            2 people found this helpful
            • 3. Re: Combining Photoshop Image Processor Pro scripts
              nilesh ricci parmar Level 1

              Thank you for this, never thought of using the actions panel.