11 Replies Latest reply on Apr 15, 2013 7:56 AM by mrsamdk

    CS6 actions > batch saving images to a clipping mask issue

    mrsamdk

      Hey all,

       

      Been at this for quite some while now and searched the www thin for suggestion - so really hope someone can help me out here.

       

      Objective:

      - Target a folder with xxx .gif patterns (in the same size)
      - Setup actions to batch open each image from the folder, copy the pattern image individually over to a .PSD file that have a silhouette of the sleeve.
      - Apply the individual pattern to the clipping mask
      - Save it out as .png

       

      Issue:
      So far ive only had the automate > batch process to save out one .png with the pattern correctly applied to the silhouette.

       

      What I experince is that, if I close down everything and initiate automate > batch process then Photoshop will complain about not being able to locate the clipping mask.
      In my action setup I first open my .psd containing my sleeve shape, then open an actual pattern image and then all other steps ending up with saving the .psd with pattern clipping mask to .png.

       

      Just to give a simple idea about my setup take a look here:

       

      http://i.imgur.com/FE8mSEU.png

       

      In this one below, ive closed everything and run the automate > batch process, which gives me the error you can see here:
      http://i.imgur.com/7Cvj26D.png

       

      Any suggestions on what I could be doing wrong OR if I am doing anything wrong?

        • 1. Re: CS6 actions > batch saving images to a clipping mask issue
          Jeff Arola Adobe Community Professional

          Have you updated photoshop cs6 by going Help>Updates from within photoshop?

          (i believe photoshop 13.0 had a problem running certain actions that required copy and paste operations when

          one used floating document windows)

           

          Or tried running your action using document tabs instead of floating document windows?

           

          (my first response that i deleted i think was the wrong reason)

          • 2. Re: CS6 actions > batch saving images to a clipping mask issue
            JJMack Most Valuable Participant

            You need to understand how File>Automate>Batch works better.  You may then be able to design a action to do what you want.   The process you describing would more likely need to  be a programmed script that can also use that second action in your screen capture.    Batch is designed to process  a set of documents. The set can be image files in a folder, the currently opened documents, image selected in the bridge or import.  Batch can also save output files and name them.  This saving can done by  overridings save as steps in actions.  The process you describe does not seem to be compatible with how batch works.

             

            I have never tried anything like you want to do.  To me Batch would open your pattern gif files. (I do not understand why gif as that file format only supports 256 mapped colors??)   Then your batch action would open your template PD file and copy the required layers perhaps using a group over into the document opened by batch. The action would then close the psd template file and use the  backgroung pattern to fill in the sleve layer with the clipping mask that was copied in from the psd template.  The action would then delete the pattern background layer and do a save as png.

            • 3. Re: CS6 actions > batch saving images to a clipping mask issue
              mrsamdk Level 1

              Hi Kelly,

               

              Thanks for the tip - ill just try and check if im up to date and in any case if that could help out.

              Actually windowed documents were only for the screenshot purpose, in my batch im not running windowed.

              • 4. Re: CS6 actions > batch saving images to a clipping mask issue
                mrsamdk Level 1

                Hi Mack,

                 

                Thanks a lot for your throughout response - really appreciate it!

                 

                I do acknowledge that im new to batch in Photoshop and could possibly why this is not working for me - although in not quite sure why and what I would need to make as a programmed script - would you by any chance try to give me an idea on what specific step needs to be programmed?

                 

                My actions are very few and quite simple, and seemed to fit in very nicely in how ive understood the actions feature would work - in any case of not being precise enough here's my exact steps.

                 

                1. I open up Photoshop - No documents or anything are open at current point. I click "Record" in actions
                2. I open my sleeve_layer.PSD  file (which opens up in a tab) -> File -> Open -> PSD
                3. I open one of the pattern .gif files (which opens up in a tab) - which are all located in the same folder with the same size -> File -> Open -> .gif

                4. In my pattern tab window (from nr 3) I select all (ctrl-a) -> copy (ctrl-c)
                5. I then click over to my sleeve_layer.PSD window tab and paste (ctrl-v) my copied pattern image into a layer above my sleeve layer.
                6. I then right-click with my mouse on the pattern.gif layer -> click "Create clipping mask" (the pattern is now only shown within the sleeve layer shape)
                7. I save the work done in the .psd to web -> File -> Save for web -> .png

                8. I then close my sleeve_layer.PSD - without saving it (since I dont want to have clipping masks for each pattern stacking up from the batch)
                9. Recording ends

                 

                If I now run the batch all actions are done fine until it reaches the action with the clipping mask - where I get "The command "Create clipping mask" is not currently available" - I can see that when this error appears, im not seeing any open sleeve_layer.PSD tab - so not sure if the psd file is actually getting opened (and this might be the error for the reference error of the clipping mask to appear).

                 

                If I try to manually RUN the actions set in the actions panel, I notice though that the sleeve_layer.PSD tab is getting opened.

                 

                When running automate -> batch -> I point "source" to my folder of all patterns (only .gif files appear in this folder)
                "Destination" folder is set to some other folder.

                • 5. Re: CS6 actions > batch saving images to a clipping mask issue
                  mrsamdk Level 1

                  UPDATE:
                  I just ran the automate -> batch - in steps so I could see the batch progress through the action steps better.
                  When running the batch in steps, the sleeve_layer.PSD DOESN'T (step 1) get opened - it runs fine from step 2 and then stops at the clipping mask, which it naturally cant find since the .psd file didnt open.

                   

                  Playing the action steps manually works fine, and opens the sleeve_layer.PSD from step 1 - saves it out correctly with the pattern and all.

                   

                  So for some reason my opening of the PSD file is ignored when running the automated batch - struggling hard to find out why :/

                  • 6. Re: CS6 actions > batch saving images to a clipping mask issue
                    conroy Level 5

                    Try making the Action:

                     

                    Open a GIF

                    Select All

                    Copy

                    Close

                    Open "sleeve_layer.psd"

                    do whatever is required

                    Save For Web

                    Close without saving

                     

                    Note that the destination folder of the Save For Web step will not be overriden by Batch. The SFW output will go to whatever folder is recorded in the SFW step of the Action. That SFW step can be re-recorded whenever required without necessitating re-recording of the entire Action.

                    • 7. Re: CS6 actions > batch saving images to a clipping mask issue
                      mrsamdk Level 1

                      UPDATE 2:
                      Ok found out that the following options in automate -> batch -> was checked: "Override Action "Open" Commands" - when this is checked my opening of the PSD file was ignored.

                       

                      I unchecked it and the PSD file now gets opened in the batch processing.

                       

                      ISSUE persisting now is that after the first image "p1.gif" has been saved out for WEB, then when the steps are to be repeated for "p2.gif", "p3.gif" etc, then it seems "p1.gif" will always open along with the next batch image in line - and when copying over the image and doing the clipping mask, it will always do this on the first image "p1.gif" and not use the image next in line.

                       

                      Conroy > Thanks for the suggestion. I tried your steps and I am getting the same issue described in this post, as with my action setup.

                       

                      Seems some little step is missing, but cant figure it out

                      • 8. Re: CS6 actions > batch saving images to a clipping mask issue
                        conroy Level 5

                        Screenshot shows an Action which works for me in a Batch.

                         

                        Screen-shot-2013-04-15-at-12.01.22.png

                        • 9. Re: CS6 actions > batch saving images to a clipping mask issue
                          mrsamdk Level 1

                          conroy > You're a god! Your detailed view of the actions basically showed me how to do it correct!

                           

                          Your approach does all the work in the .gif file opened and rather than opening the .psd file with the mask layer, you just PLACE it within the .gif - move it into correct position, swap layer order etc.

                          TIP: if you struggle with the locked .gif layer (which i did) you simply go to IMAGE > MODE > RGB

                           

                          MANY MANY THANKS - you saved my day

                          • 10. Re: CS6 actions > batch saving images to a clipping mask issue
                            conroy Level 5

                            You're welcome! By the way, in my Action, the first step after opening the GIF is convert to RGB.

                            • 11. Re: CS6 actions > batch saving images to a clipping mask issue
                              mrsamdk Level 1

                              Yup - just wrote in case dummies like me came by and wondered "uhmm, how do i actually convert it to RGB" - actually needed to google it a bit before finding the answer , hehe