Skip to main content
Known Participant
August 4, 2021
Question

Photo frame action set and batch automation

  • August 4, 2021
  • 3 replies
  • 4839 views

Hi everyone,
l have a background image which is an interior room render that has a blank photo frame as part of the render. l would like to add a photo to the inside of this frame and then create an action set that l can use in a batch automation to process several images into this frame as separate jpgs. l cannot figure what actions need to be recorded for this to work.

3 replies

JJMack
Community Expert
Community Expert
August 4, 2021

That would be hard to do or impossible to do with an Action.  For all image will not have the same aspect ratio as the frame.  Also the Batch processor would  open the Picture Images not the frame image. So the action would need to get the frame image into the open image picture document the action would need to scale the current image for the Frame images picture ares set the document canvas size and resolution to the Frame Image canvas size and resolution then place in the frame image into the current document , Move the image layer above the placed  smart object layer you frame image and position the image over the frame and mask the image layer to the frame's aspect ratio shape. Finally save the composite image to an output folder with the Image's name. before closing no save the current document.

 

However, it would be a simple task to make your frame images a PSD Template that could be batch populated with your images using one of my free scripts.  Any image that does not have the same aspect ratio as the frame will  look like a centered frame aspect ratio crop. Free Photoshop Photo Collage and Mockup Toolkit 

 

Image Aspect Ratio is very important.  Placed image should have a aspect ratio like the frames aspect ratio...

 

There are scripts that will frame any aspect ratio image and  adding frame the any aspect ratio image is an easy Action you can record.  Adobe installs a Frame Action set in Photoshop.

JJMack
Known Participant
August 5, 2021

Thanks for your response JJMack.

So are you saying the process l've listed below has no workaround to be a possible action command?
All my photo images are the same size/resolution and at an aspect ratio of 1.414:1. Majority of the frame images are the same aspect ratio 1.414:1 either landscape or portrait, however there will be other frame images that are not this same ratio in which l would have to mask the photo image to fit as you said.

l'm not very familiar/knowlegable with the use of scripts but you're saying if l create a PSD template for the frame image/s (A) the l can use your 'Simple Mockup Templates' scripts to batch place my photo images (B) into the frame image (A)?



Process l've been trying.

Aug 06, 2021

Known Participant
August 10, 2021

You need to add the style you add the Style  you added to Photoshops's Style Palette into the var image Style list in the  'PCTpreferences.jsx' script on your machine, Edit the  'PCTpreferences.jsx' script  add: ", 'Your Multiply Style Name' "into the list

 

 

var imageStyleList = ['Default Style (None)','Photo Collage Style 1','Photo Collage Style 2','Photo Collage Style 3','Photo Collage Style 4','Photo Collage Style 5','Photo Collage Style 6','Photo Collage Style 7','Photo Collage Style 8','Photo Collage Style 9','Photo Collage Style 10','Photo Collage Style 11', 'Your Multiply Style Name' ];

 

If the Late style you add blend mode is multiply and you add no style effects. The Placed smart object  image layer will have no "fx" style icon in the layers palette the layer blend mode will be your Style blend mode.

 


l don't know how to edit the 'PCTpreferences.jsx' script though, if l open it in Photoshop nothing appears or happens, it's just a blank Photoshop screen. Although if l double click/open the 'Photo Collage Styles.asl' the 'Photo Collage Styles' appears in my 'Styles' window and l've then added my multiply style preset to it.


l'm not sure how you get this 'var imageStyleList' to appear.

Bojan Živković11378569
Community Expert
Community Expert
August 4, 2021

"l would like to add a photo to the inside of this frame"

 

This is first tricky part that needs to be adressed: do you have layered file or flat image? That is first stone, the rest is described in @c.pfaffenbichler answer. We need much more details, ideally with screenshots or file uploaded somewhere to see it.

 

Another huge part are files for replacement. Do you have images with the same dimensions and resolution (and which resolution) or files with random dimensions and resolution?

c.pfaffenbichler
Community Expert
Community Expert
August 4, 2021

Another huge part are files for replacement. Do you have images with the same dimensions and resolution (and which resolution) or files with random dimensions and resolution?


That’s definitely an important issue when automating such tasks. 

If the images should be different in size and aspect what rule should determine the placement (can they be clipped, distorted, …)? 

c.pfaffenbichler
Community Expert
Community Expert
August 4, 2021

Please describe the process and parameters – what is the Layer structure of the image; are the replacement images identical in size and resolution; in which file format do you want to save the resulting variations; what is the naming convention; …? 

Known Participant
August 5, 2021

Thanks for your response.
The photos l'm trying to batch place within the frame are all the same image size and resolution at 59.4cm x 42cm (A2) at 300 DPI.
The background render image is an image size and resolution of 3400px x 2650px at 300 DPI.
l have various background images that l need to create actions for as they are different sizes but all at 300 DPI.
For the purpose of minimal confusion l will name the background render image as 'image A' and the photo image that l'm looking to place in the frame as 'image B'.
Here's the process l've been trying.

1. Before recording the action, open the background render image A.

2. Hit record, open the photo image B, copy and paste image B onto image A. Image B is now above image A layer.
3. Move and transform the image B to fit within the photo frame in image A.
4. The l click 'Place embedded' and select image A.
5. Move image A layer below image B.
6. Select 'Save as' and save image as a jpeg in new folder.
7. Select 'Close' and select 'no' to saving changes to document. Stop the action recording.

l then try to create a batch automation by selecting the 'source' folder containing all the image Bs and set the 'destination' folder in a new folder. l select the box for both 'Override action "Open" commands' and 'Override action "Save as" commands'.

Here are some screenshots showing action process.