Copy link to clipboard
Copied
So, I've got 120 photos that were green screen keyed. The green screen has already been removed and they're now PNG files with transparent background. The idea was that I need to drop in a background image to these images, preferably not manually and one-by-one.
I have used the batch/actions function many times to crop or resize images, but I can't seem to figure out how to use it to do this.
Basically, I have an image, with a person in it, with no background, (transparent cutout) and I have ONE particular background image that I need to drop in behind them as a new layer. Save and repeat 120 times.
When I tried to record a set of actions to do this, it seemed to list my actions accurately, but when I ran it as a batch, it just re-saved the main picture (of the person) without the background layer.
Can someone give me some guidance on how to do this automatically?
A batch Action would be difficult to create unless all your png files have the same canvas size. If they are the same size an action could Add canvas to make the png canvas the size of the background image you want to place in below the png layer. Place would add the background image above the png you would then move the smart object layer to the back and save your populated image file.
If your png files vary in size you could tthink of it in other direction. You have one background template
...Copy link to clipboard
Copied
A batch Action would be difficult to create unless all your png files have the same canvas size. If they are the same size an action could Add canvas to make the png canvas the size of the background image you want to place in below the png layer. Place would add the background image above the png you would then move the smart object layer to the back and save your populated image file.
If your png files vary in size you could tthink of it in other direction. You have one background template you want to populate with a foreground image. You need a script to batch populate a template that will resize the pngs and position them over the background. However there is a parental problem, Populating PNG image that have transparent Boarders. Transparent borders are trimmed off when you copy the layer to the Clipboard so there will be no transparent bordered when you paste in the clipboard image. Place also seems to trim transparent borders. Placement and resizing can be a problem when you use png with transparent borders and you want to retain the png aspect ratio and size. So you may want to protect you png that may have transparent borders. A simple bat action can add a 1% opacity pixel to the png canvas in the top left and bottom right corners. To force the layer bounds to be the png canvas size to retain the png aspect ratio. It would be easy batch populate a template with any of the batch populating scripts in my Photo Collage Toolkit.
Photo Collage Toolkit
Photoshop scripting is powerful and I believe this package demonstrates this here is a video showing a 5 image collage PSD template being populated with images
The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
There are fifteen scripts in this package they provide the following functions:
Copy link to clipboard
Copied
Thank you JJMack!
I am lucky that all the media is exactly the same size and resolution
I knew it had to be possible with the actions to do, but I did not know about the Place function! I was just trying to do it manually. Using the place action, I was able to build a set of actions that worked perfectly. Thanks for your input!