Skip to main content
Known Participant
October 6, 2020
Question

Automating Source and Destination folders for 2-step Batch actions?

  • October 6, 2020
  • 3 replies
  • 806 views

 

I have 2 complex sets of actions (image attached)

  • The first set has 21 actions — Each action resizes a folder of images into a particular image size and resolution, appends each file name with that size, and then saves each file as a PNG. 
  • The second set runs through each of the first set's actions, one after the other so you can batch resize a folder of images into multiple image sizes and resolutions, append all the file names, and save them all as PNGs...

 

The problem is that the second set pops up a window EVERY time you hit a new size, asking for the source and destination folder... Is there any way to set the source and destination folders once at the beginning, and have it apply to all the actions in the second set? Multiple users will have to use these actions, so they'll each have different source and destination folders... 

 

I don't know how to code, but I'm techy and can figure stuff out... 

This topic has been closed for replies.

3 replies

PECourtejoie
Community Expert
Community Expert
October 7, 2020
Known Participant
October 7, 2020

Not really... Overide Open tells the script to ignore acctions that open files, but none of my actions use that... And Overide Save As tells the action to use whatever was previously set in the action it's referencing—which I don't want to do because I want this to operate independently... 

PECourtejoie
Community Expert
Community Expert
October 7, 2020

OK, I've seen the attachment, now I get it...

Stephen Marsh
Community Expert
Community Expert
October 7, 2020

So it sounds like the second step that references the first step is the problem.

 

Perhaps you could use a different method, and or dupe the first set and remove the offending steps.

 

https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/

 

Known Participant
October 7, 2020

Sadly, that doesn't have .PNG as a save option. 😞

PECourtejoie
Community Expert
Community Expert
October 7, 2020

Hello, @SK1234567890 did you check? Image processor does not have PNG (vote here) https://feedback.photoshop.com/conversations/photoshop/photoshop-add-png-also-to-ps-image-processor/5f5f45ea4b561a3d42675710

 

But Image Processor Pro does, click on the 'file type:" drop-down...

JJMack
Community Expert
Community Expert
October 6, 2020

If you do not know how to code how are you able to change image files images aspect ratio for what your action need them to have so the actions can resize the images to have the number of pixels shown in the action name. None of you Action are expanded so we can see what they do. There would need to be some plug-in used to make the required Aspect Ratio image crops so the images can be resized without distortion. You seem to have several Portrait  aspect ratios as well as square 1:1 aspect ratios actions.

JJMack
Known Participant
October 6, 2020

This is only one phase of a whole process before we get to resizing, so the folder of images are always the same size... In these actions I've used a combination of Image Size and Canvas Size to crop down to the final sizes.

 

 

JJMack
Community Expert
Community Expert
October 7, 2020

Those actions are doing a constrained resize to some width or height and not changing the canvas size after the resize to add or crop the document canvas to the size in the  Actions name.  Therefore the image aspect ration are not altered and will very likely not be the size in the action name.  The Action names have several portrait aspect ratios and also square aspect ratios.  The saved files will not be the sizes in the actions names. The Square Aspect ratio action may crop or add canvas to the image so the file  will be the correct canvas size. Image content may be cropped from two sides or boarder added to two sides. Most likely boarder added to the left and right sides since you seem the have portrait images and you resize the  image height therefore the image width will be less than the image height so whem you change the canvas size width to match the height boarders will be added.  If the document has a background layer the added canvas will be the background color.

JJMack