Skip to main content
Known Participant
July 1, 2019
Answered

Best way to batch process 650 image resizes

  • July 1, 2019
  • 4 replies
  • 1251 views

Hi all -

I have 650 images that need to be resized from 2:3 to 3:4, and then somehow saved out as JPGs with the same name. I've dragged a bunch into a Ps template, transformed to fit, but then I get stuck trying to export them as layers to files. I can't figure out how to retain the layer names. When I pull up "Export Layers to Files" I get this window:

All of the other answers I've found on the forum say, "Oh, just export layers as files and set your parameters there". Am I crazy? Or is there no option to save files as their layer names?

Bigger question is, am I doing this the best way possible? Or is there some super easy process that I'm just painfully unaware of? (Also, I've never in my life written javascript, but I am willing to try. But where do I find the script to edit it?)

I need help!

This topic has been closed for replies.
Correct answer Chuck Uebele

Are the original images in separate files? if so, create an action to crop an image to the ratio that you want, then run the action using the batch command to save as a jpg.

4 replies

vikashk503
Participating Frequently
July 1, 2019

Hi,

I would suggest you to create an action and then try. I too process multiple images and I find Action within Photoshop as the best, efficient way to do. Here are the steps :

1. From the top Menus in Photoshop, click on windows and select Actions. This will open Action Panel.

2. Before you begin , lets put all your images in one folder. Now copy the folder and put it on desktop or your desired drive. This way you are working with back up not with originals.

3.From the Fly out menu of Action Panel, select New Actions. Type a name and click on record button.

4. open the image in Photoshop from that back up folder.

5.go to image menu and click on resize and type the desired resolution which would make it to 3:4.

6. Go to file click on save as. press ok to the prompts and then it would ask for a location to save. Create a new folder and save it there.

7. go to file and click on close and file will be closed.

8. go back to action menu and stop the action.

9. go to the back up folder and move that image which had just processed out of there to somewhere else because once you run the action it may create duplicate.

10. go to file menu in Photoshop, automate, batch.

11. your action will be selected by default if not choose it. check the box to override save as and avoid open command.

12. select the destination folder as  the new folder you had created earlier.

13. click on run

Thats it. Please let me know for problems. I think it should do it.

JJMack
Community Expert
Community Expert
July 1, 2019

Actions can not deal with varying sizes.  If all the OP  2:3 Images have the same Canvas size then all the Output  Image sizes will also have the same 3:4 Canvas sizes. An action can easily do something like that. The Op still need to decide on how they want to process the Aspect Ratio change.  Do they want to crop the image  to a 3:4 aspect ratio,  or add borders  so the image will have 3:4 aspect ratio, or if they want to distort the image into a 3:4 aspect ratio.

JJMack
ellen_wAuthor
Known Participant
July 1, 2019

Yes, that's exactly my dilemma. The images are all a little bit different. Some are cropped very tightly and some have plenty of canvas space to cut out.

JJMack
Community Expert
Community Expert
July 1, 2019

You cloud create a Collage template to create a particular size 3:4 image and use my toolkit scripts to batch populate it. All output image will be the same size 3:4 Portrait  PSD size. With the Background laver covered by a Smart Object Layer with Source Image File name as the layer name.  The source images can have any aspect ratio including your 2:3.   For the image will be resized to fill the 3:4 aspect ration canvas. Excess image will be clipped  off by both a layer mask and the documents canvas size.  The script can optionaly save a flattened jpeg file. If you use the  BatchOneImageCollage.jsx script the output filenales will be -ImageName-CollageName.PSD and .JPG.

Free Photoshop Photo Collage and Mockup Toolkit

Template

JJMack
ellen_wAuthor
Known Participant
July 1, 2019

Thanks for the toolkit! I'll look into this for future runs.

Derek Cross
Community Expert
Community Expert
July 1, 2019

Would the Script Image Processor suit your requirements?

JJMack
Community Expert
Community Expert
July 1, 2019

The Image Process use fit image it will not change and images aspect ration when you you its resize  to fit It also will not will is save  multiple jpeg versions of a file..  You will need to include an action to do the aspect ratio resize change the way you want it done. So you would need to  download and Install Image Processor Pro. if you want to save multiple jpeg version of  your images and name the well ,

A single Jpeg output with the use of an action to do the aspect  ratio change the Image Processor script can do.

If you not know the actual image canvas sizes and the input and output image canvas sizes can vary in canvas sizes.  You will need tp script the whole batch process.

Also Jpeg image just have a single Background layer  that does not support transparency and is named Background.

JJMack
Chuck Uebele
Community Expert
Chuck UebeleCommunity ExpertCorrect answer
Community Expert
July 1, 2019

Are the original images in separate files? if so, create an action to crop an image to the ratio that you want, then run the action using the batch command to save as a jpg.

ellen_wAuthor
Known Participant
July 1, 2019

Thank you Chuck. This was working for me at first, but then it randomly started outputting a 3:4 canvas with the image very tiny in the corner.

So, I started just cropping them manually, which isn't taking as long as I thought it would...