FORUMS: list search recent posts

Watermarking/branding images with file name

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
cinaed
Watermarking/branding images with file name
on Sep 21, 2007 at 6:29:43 am

Hello everybody!

I


Return to posts index

Richard Harrington
Re: Watermarking/branding images with file name
on Sep 21, 2007 at 1:56:11 pm

Try File Scripts Image Processor


Return to posts index

ekim wahs
Re: Watermarking/branding images with file name
on Sep 24, 2007 at 9:31:15 pm

Scripting would handle this nicely.

here's a bit that will add a type layer with file name

// set rulers to pixels and save original for resetting
var originalUnits = app.preferences.rulerUnits
app.preferences.rulerUnits = Units.PIXELS

// add the pixel position for the left side of your text block below
var textLeftPosition= 60

// add the pixel position for the bottom of your text block below
var textBottomPosition= 60

var typeLayer = app.activeDocument.artLayers.add();

typeLayer.name = app.activeDocument.name;
typeLayer.kind = LayerKind.TEXT;
typeLayer.textItem.size = 48;
typeLayer.textItem.position = [textLeftPosition, textBottomPosition];
typeLayer.textItem.contents = typeLayername;

// return units to original
app.preferences.rulerUnits = originalUnits

You could use insert menu item action to call the script. Save the above text as a jsx file, and call it from file/scripts/browse

Also, here is a nice script to use as a starting point for processing a folder of images. Insert the operations that you need to perform in the area indicated.
http://www.tranberry.com/photoshop/photoshop_for_geeks/openFolderTemplate.j...

Jeff's Photoshop for geeks area is a nice intro to scripting in Photoshop.

Mike Shaw
Photoshop QE


Return to posts index


Cinaed
Re: Watermarking/branding images with file name
on Sep 25, 2007 at 5:03:04 am

Ah, thanks a lot!
This will probably save me hours of work, and even enable my company to be able to offer yet another service ;)

-Kenneth


Return to posts index

Rob Goldstein
Re: Watermarking/branding images with file name
on Mar 4, 2009 at 10:40:08 pm

I Have never used scripts before. Can anyone tell me how I apply this script in photoshop? Unfortunately I look at this and all I see is Greek.

Thanks so much for the help. If I can get this to work it will save me so much time.



Return to posts index

paul Hinderer
Re: Watermarking/branding images with file name
on Sep 2, 2009 at 4:40:32 am

Hi Richard,
I have tried to use your file location watermarking script in SC4 - but I keep getting an error message for line 17 - (typeLayer.textItem.contents = TypeLayername;. The script does load a text layer in the name of the file, but no text appears on the page. I am loading the script by "scripts - browse". Can you let me know if I am doing something wrong.
Cheers


Return to posts index


ekim wahs
Re: Watermarking/branding images with file name
on Sep 3, 2009 at 11:00:04 pm

try adding the line
var layerName = typeLayer.name
before the line
typeLayer.textItem.contents = typeLayername;

then change
typeLayer.textItem.contents = typeLayername;
to
typeLayer.textItem.contents = layerName;

Mike Shaw
Photoshop QE


Return to posts index

Jed Rosenberg
Re: Watermarking/branding images with file name
on Mar 15, 2010 at 7:34:33 pm

This is working for me, but how do I adjust the color? I'd like to make it white.


Return to posts index

ekim wahs
Re: Watermarking/branding images with file name
on Mar 15, 2010 at 8:11:41 pm

set the foreground color before the type layer gets added.

app.foregroundColor.rgb.red = 255
app.foregroundColor.rgb.green = 255
app.foregroundColor.rgb.blue = 255

will set the FG color to white

Mike Shaw
Photoshop QE


Return to posts index


Jed Rosenberg
Re: Watermarking/branding images with file name
on Mar 15, 2010 at 8:18:29 pm

thank you!


Return to posts index

Jed Rosenberg
Re: Watermarking/branding images with file name
on Mar 17, 2010 at 7:34:42 pm

One more question ... i'm trying to make it 'right justified' but my script is not working.

typeLayer.textItem.justification = justification.right


Return to posts index

Josue Smart
Re: Watermarking/branding images with file name
on Mar 8, 2012 at 11:12:52 pm

Hi, do you know how can i get rid of the file extension(.jpg) in the watermark?


Return to posts index


Evagoras Mandrides
Re: Watermarking/branding images with file name
on Oct 30, 2011 at 10:05:57 pm

I have just used this script and would just like to say what a stroke of genius!!!! the has saved me inputting 300 file names manually! Line 17 did cause a problem but you fix was spot on!!! well Done!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]