Skip to main content
michaels98767078
Participant
November 27, 2023
Question

combining images into a PSD template

  • November 27, 2023
  • 5 replies
  • 1573 views

I have a folder with many images, all images are sized correctly, I also have a PSD file, used as my template. can someone tell me how I can automate placing the images into the PSD, placing it into the correct position, and saving the result as a .png, and also, if possible as an Adobe PDF? The reason for my request is that I have created 350 Christmas cards for instant download and the saved .png and PDF files are what my customers buy. Thank you for any help you might be able to give.

This topic has been closed for replies.

5 replies

Stephen Marsh
Community Expert
Community Expert
November 27, 2023
michaels98767078
Participant
November 28, 2023

Hello,

Thank you both for so much help. I found that copying the path onto Excel and then parsing it on the backslash does the trick.

There is no bleed area because this is a final file for the end user to print on his home computer or at a printer. That is why I have to be precise in the images I place. After the customer prints, he cuts on the line, folds the paper in half gives or mails the card to someone. I am simply trying to automate as much as possible in order to still list and sell some of these in my Etsy shop.

Again, I truly appreciate your help

Michael

 

Stephen Marsh
Community Expert
Community Expert
November 27, 2023

@michaels98767078 – This can be done via an Action and the Automate > Batch command.

 

The Batch command will open each separate variable image and play the Action.

 

The Action would size and position the variable image opened by Batch (you may or may not need the template).

 

Stephen Marsh
Community Expert
Community Expert
November 27, 2023

@michaels98767078 

 

Your template example for the 5x7" image doesn’t contain bleed!

 

 

Here the guides indicate the trim and fold:

 

Conrad_C
Community Expert
Community Expert
November 27, 2023

For this type of work, instead of using actions, you should consider using data-driven graphics (variables). It’s like a mail merge, but for Photoshop documents. You have a template, and one or more pixel or text layers that need to be replaced with a different image or text. You set up data-driven graphics, and what Photoshop will do is swap out your designated layer with each new image or text string, and save a copy of each variation.

 

If that seems interesting, watch the video below to see exactly how it works. I haven’t watched the whole thing, but I recognize the presenter and he is one of the best Photoshop instructors on the web. If you don’t have half an hour, at least start 20 minutes in where he begins the final merge.

 

If you master this technique, in the future you will not only be able to automate replacing one graphic in each greeting card, but also replacing a text layer if you ever want a card to do that.

 

 

For the instructions in Photoshop Help, click this link:

Create data-driven graphics

 

---

 

If you decide to continue to try to achieve this using actions (I wouldn’t), there are two ways to get PNG in the action:

 

A. Choose File > Save a Copy. However, this will add the text “… copy” to the end of each filename, unless you go into Preferences / File Handling and enable “Do not append ‘copy’ to filename when saving a copy.”

 

B. Choose Layer > Flatten Image, because PNG cannot be available in Save As for a layered image (PNG does not support layers, Save a Copy will flatten). After saving as PNG, either insert an action step that does Edit > Undo to back out of flattening (if you plan to save that PSD variation), or just close the file without saving (if you don’t need to save that PSD variation).

michaels98767078
Participant
November 27, 2023

Conrad C,

Thank you for your answer.

I do like the solution given in the video but have a problem doing one thing in there. I have so many images that it would be difficult for me to type the name of each image into the spreadsheet. how can I extract the actual name of the image from the folder? 

this is what I have

D:\Gearbubble\Designs\Digital Downloads\Cards\christmas 2023\Christmas Card Bundles\Christmas Card Bundle 2\Ready 1\Christmas tree plus cat.png

this is all I need

Christmas tree plus cat.png

 

Conrad_C
Community Expert
Community Expert
November 27, 2023

I never type out all of that. Instead, I use copy and paste, with these steps (I’m using a Mac so it might be different in Windows):

1. Switch to the desktop (in my case macOS Finder), and open the folder with the images in it.

2. Choose Edit > Select All.

3. Choose Edit > Copy Items.

4. Switch to the spreadsheet application (I’m using Microsoft Excel).

5. Choose Edit > Paste.

 

On my Mac, that pastes the copied filenames into a vertical series of cells, and then I can do any tweaking needed before copying and pasting those cells into the spreadsheet where the other data is formatted for Photoshop.

 

That pastes filenames only. If I wanted a full path (again this might be different in Windows), I hold down the Option (Alt) key while clicking the Edit menu, and that changes the Copy Items command to Copy Items as Pathnames, and so I just choose that.

 

If it doesn’t work that way on your computer, first research which modifier keys or commands can do the same thing in Windows; for example, it might involve right-clicking. If that doesn’t work, there are many utility applications, some probably free, that can list filenames from a folder as text that you can export to a text file, or copy and paste. Another way is to use a command line in a terminal app to list the contents of a directory, because that returns a text list you could copy and paste.

kglad
Community Expert
Community Expert
November 27, 2023

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from cc desktop">
michaels98767078
Participant
November 27, 2023

Thank you.

I figured out that I can do this with an action but now I am stuck and not able to save the results as .png and .pdf 

I tried export as nad that does not work in an action and I tried save as which does not allow me to save as a .png

this is what I was trying to implement:

Yes, this is a common issue when using Actions in Photoshop for batch processing. The key is to set up the file naming correctly when recording the action, especially when saving the files. Here's how you can fix it:

  1. Record the Action with Save As Steps:

    • Open one of your images and your PSD template.
    • Start recording a new action.
    • Perform your usual steps (like copying and positioning the image in the template).
    • When it comes to saving the file, use File > Save As.
    • In the Save dialog, choose the format (PNG or PDF) and make sure to save the file in a designated folder. Important: Do not change the default file name that appears in the 'Save As' dialog while recording the action. Photoshop will use this setting to retain the original file name.
  2. Use the Batch Function Correctly:

    • After recording your action, go to File > Automate > Batch.
    • Choose the action you recorded.
    • Select the source folder where your images are located.
    • Under 'Destination', choose 'Folder' and select a folder where you want the processed files to be saved.
    • Here's the crucial part: In the 'File Naming' section, you need to ensure that the original filename is preserved. Typically, you would use a combination like Document Name + extension or just Document Name if you're saving in the same format. This tells Photoshop to use the original document name for each file.
  3. Testing the Action:

    • Before running the batch process on all your images, test the action with one or two images to make sure it's working as expected.
    • Ensure that the files are being saved with their original names and in the correct format.
  4. Adjustments If Needed:

    • If the files are still not being saved with the original names, go back and check your 'Save As' step in the action. Make sure you didn't accidentally type a new name when recording the action.
    • Also, double-check the 'File Naming' settings in the Batch dialog to ensure they're set to preserve the original file name.