Skip to main content
Participant
January 22, 2025
Question

Automating Image Placement and Resizing to Fit Frames in Photoshop

  • January 22, 2025
  • 1 reply
  • 899 views

Hi All,

 

I'm working on a project where I need to place a frame inside each of the 20 white boxes in my Photoshop file and create an action to fill each frame with a photo. The photos will be copied and pasted directly into Photoshop and won’t be saved as separate files beforehand.

 

I'm looking to automate placing each photo into a frame and resizing it to fit as closely as possible.

The challenge I’m facing is image resizing. Since all the photos will have different dimensions, I can’t just use free transform manually for each image.

My Questions:

  1. Is there a way for a photo to automatically resize to fit the frame when added to it?
  2. Alternatively, is there a way to resize an image to a specific width or height (e.g., 250 pixels) while keeping the aspect ratio intact—without changing the canvas size?

 

I’ve tried using the "Image Size" option in the Edit menu, but it resizes the entire canvas, which isn’t what I want.

 

I’d appreciate any tips or workflows that can help streamline this process. 

Thanks in advance for your help!

Kate

 

 

 

 

 

 

1 reply

c.pfaffenbichler
Community Expert
Community Expert
January 22, 2025

Please provide the layered sample-file. 

It should be possible to automate the scaling with a Script, but I am not sure what exactly you mean by »The photos will be copied and pasted directly into Photoshop and won’t be saved as separate files beforehand.«. 

Participant
January 22, 2025

Thanks for your response! I've attached a version of the file.

I mentioned copy-pasting because most advice I’ve seen about batch resizing seems to apply only to saved files. However, our workflow involves copying photos directly from a customer chat on the internet and pasting them into Photoshop. Saving each file beforehand would slow down the process significantly.

In this case, we’d copy and paste 20 pictures and then edit them to fit a specific size within a template.

Thanks again!

c.pfaffenbichler
Community Expert
Community Expert
January 23, 2025

The frames are already filled. 

Edit: What is your actual workflow? Do you really start with frames that already have content or empty frames?