I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
For each photo, I want it to have the same background. If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder. (I have the original file somewhere else, and am working with an intermediate copy).
But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name? Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’. Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
Thanks in advance for your help!
PS - I have no scripting experience in PS, but have written code in other applications/scenarios.
Why a droplet?
In a Script you can set up dialog to select files or a folder directly, which would seem fairly convenient.
Actions don't have access to the document name (where the file name is). Scripts do, however.
If your products are sequentially numbered, you're in luck. You can overide the "Save as command" and make sure that your naming uses a sequence which you can set to the same starting number as your product. Here is an example of how to configure File -> Automate -> Batch (assume the set and action are your hand built one)
Instead of "Document name" you'd type "PRODUCT_" per your example and choose a 3 digit Serial number.
The "Starting Serial #" is where you can change if your products are numbered say, 101 and up.