Skip to main content
charlesk10254224
Participant
November 30, 2017
Question

Batch Watermarking? with action, script, automation ...?

  • November 30, 2017
  • 4 replies
  • 18852 views

I have folders that contain hundreds of photos each.  Each photo has a unique name.  What is the fastest way to,

Put a watermark on each photo

Each watermark should be the name of the photo

Output to a JPEG

Is there a script or an action that I can set up to automate this?

Thank You so much!

This topic has been closed for replies.

4 replies

Legend
March 16, 2020

Uncomment the one section to remove the file extension. Set the formatting as you want- position, font, size

 

#target photoshop

testText();

function testText(){
if(documents.length > 0){
var originalDialogMode = app.displayDialogs;
app.displayDialogs = DialogModes.ERROR;
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
try{
var docRef = activeDocument;
var LayerRef = docRef.artLayers.add();
LayerRef.kind = LayerKind.TEXT;
var TextRef = LayerRef.textItem;
var fileNameNoExtension = docRef.name;
//uncomment this section to remove file extension
//~ fileNameNoExtension = fileNameNoExtension.split('.');
//~ if(fileNameNoExtension.length > 1){
//~ fileNameNoExtension.length--;
//~ }
//~ fileNameNoExtension = fileNameNoExtension.join('.');
//

TextRef.contents = fileNameNoExtension;

//change this to the formatting you want to use
TextRef.position = new Array(425, 1025);
preferences.rulerUnits = Units.POINTS;
TextRef.size = 42;
TextRef.useAutoLeading = false;
TextRef.leading = 42;
TextRef.font = 'Calibri-Bold';
TextRef.justification = Justification.CENTER;
TextRef.autoKerning = AutoKernType.METRICS;
//

}
catch(e){
preferences.rulerUnits = originalRulerUnits;
app.displayDialogs = originalDialogMode;
return;
}
preferences.rulerUnits = originalRulerUnits;
app.displayDialogs = originalDialogMode;
}
else{
alert('You must have a document open to run this script.');
return;
}
}

charlesk10254224
Participant
November 30, 2017

Thank you!  With these tools, can one make the text in the watermark, the name of the photo?  Keep in mind that each photo will have a different file name.  So for a folder with 100 photos, I would need 100 different watermarks, with the text in each watermark, the same text as the file name. 

Inspiring
August 9, 2018

hi Charles,

I have the same problem. I need to process thousans of images. (larges)

I found two programs to do this process. Aoao Photo Watermark for Windows and Watermark Pro for Mac.

November 30, 2017
Bojan Živković11378569
Community Expert
Community Expert
November 30, 2017

Here is link to install Watermark CC from Adobe Add-ons https://exchange.adobe.com/addons/products/12780