batch- play action

Go to page

Active Member

hi eveybody.
I have two folders. in each folder I have 1000 PNG images with transparent background (1000 PNG images in the folder A, 1000 PNG images in the folder B). I need to place the first image in the folder A on top of the first image in the folder B. second image in the folder A on top of the second image in the folder B, and so on, following the right sequence. I would like to do the entire process using the batch function. I need to save the final images in a third folder called "C". what action I need to register in order to get the work done. Could someone tell me what are the steps I need to follow? I saw some old post related to mock ups but my issue is slightly different cause all the images are different and I need to stick to the numbered sequence. thank you very much

Power User

Can you explain exactly what do you mean by "I need to place the first image in the folder A on top of the first image in the folder B"? As I understand - just open B_01.file and place it as top layer in file A_01.file and save as C_01.file in new folder? That's what you need?

Active Member

Can you explain exactly what do you mean by "I need to place the first image in the folder A on top of the first image in the folder B"? As I understand - just open B_01.file and place it as top layer in file A_01.file and save as C_01.file in new folder? That's what you need?

HI revnart,
yes... you got it right. I do an example: in the folder A I have 1000 photos/drawings, in the folder B I have 1000 texts. I need to place the texts on top of the photos. the final image obtained by merging the two files ( A_01.file and B_01.file) has to be saved in the folder "C". I use the PNG format in order to keep the transparence

Power User

1a. If you saved jsx file go to step 2.
1b. If you didn't save jsx file download it here - https://adobe.ly/2MuRe9A
2. open Photoshop
3. Go to File>Scripts>Browse.. and choose the jsx file you created/downloaded
4. Script will guide you through the preocess

Active Member

1a. If you saved jsx file go to step 2.
1b. If you didn't save jsx file download it here - https://adobe.ly/2MuRe9A
2. open Photoshop
3. Go to File>Scripts>Browse.. and choose the jsx file you created/downloaded
4. Script will guide you through the preocess

Active Member

tested and it works perfectly. but I forgot to say that I need to have the files saved in the folder C in 3 types of format: Jpeg, PNG and PSD.
if this doesn't bother you, I would like also ask if I can change the blendmode. I mean... how can get the main photo in folder A with transparent text in folder B? (so that I can see the color of the surface I print on)

Active Member

the last script you sent to me
was fine but when I see the final image I notice that the image from folder B placed upon the image from folder A is slightly moved from center (the two images have
the same dimensions and in order to get the images perfectly overlapped I need to move the second image manually). is possible to fix this problem?
I don't know anything about java script but comparing the two files you sent me I changed the blending mode from multiply to NORMAL and I canceled doc.flatten in order
to get the png file with transparent background). another issue is that the second image is placed in the right sequence only if the files from folder A and B have the same name
but the files in folder B have different names and I can't change them. is possible to follow the sequence regardless the names?

The way the file are saved in tre different folder is perfect.

if doesnt bother you, could I have 2 different scripts? one picking up files from two folders A and B, saving in C; and one picking up files from tre folders A, B and C?
(image from folder C upon B upon A, the final image saved in folder D)

Power User

1. As I wrote earlier, I would need one of you "A" files, one of your "B" files and one final file to know exactly what I'm working with That way I will identify why there is some movement.
2. Sequence of names - I will try to add some options to sort files
3. Adding another folder should be a big problem

Probably all you want is possible Just need some time and your files, at least one from each folder.

Active Member

about my previous request... I try to explain: I have one png file, I select the file using ctrl and clicking on the layer. I select only the image and use bucket to fill the shape with black colour. but when I do this work I get the blurred shape. I instead need an image with clean and clear cut. I tried different options but nothing works.
I do this without using manually the eraser because I need to automate this action using batch funtion, that's why I use ctrl and click on layer so that I can register the action. how can I sort it out?

Useful Forums

Useful Links

About Photoshop Gurus Forum

Photoshop Gurus is a community of graphic designers that focuses on to the exchange of ideas and information relating to all aspects of image editing. We welcome users of all skill levels and backgrounds.