?
Solved

Embed file name as text on image

Posted on 2004-08-26
9
Medium Priority
?
752 Views
Last Modified: 2012-05-05
I am relatively new to photoshop and have begun using actions (thanks to EE!).  I have large volumes of images (400-500 at a time) that I would like to add a layer to which would show the name of the file.  That way, when the client reviews the file in a slide show format, they already know the name of the file.  

I am thinking of some kind of variable-set layer with an opaque background that could be copied onto the image during an action.

Any ideas??

ImageryGrl
0
Comment
Question by:ImageryGrl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 11

Expert Comment

by:Jason210
ID: 11929009
I believe there is a built in script in Photoshop CS that allows you to just that.  

Try this:
Choose File, Scripts, Add File Name.
0
 

Author Comment

by:ImageryGrl
ID: 11945046
Thanks Jason,

I am in the process of upgrading to CS so I can use this script.  I will post the acceptance when I test the script.

thanks

0
 

Author Comment

by:ImageryGrl
ID: 12013176
No go...

When I go into File, scripts all I see is

Export Layers to Files
Layer Comps to Files
Layer Comps to PDF
Layer Comps to WPG
Browse


I don't have a "Add file Name" in my list.   Any ideas as to how to get this option??

Thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Expert Comment

by:smsj91
ID: 12033948
Hi ImageryGrl

For the slide show, why don't you advise your client to use a program called iview.
iview is a freeware from www.irfanview.com,
while playing the slide show, iview will display the file name.

And if you want to write the file name ON the slide (Not on a layer), iview can Batch capture and do this too, like this:
chose your images then click Add then >
File > Batch conversion/rename > a window pops up
go to (set advanced option) in the popup .. > MISCELLANEOUS > Add Overlay text >
settings > the hint is under the text box ($D = file folder , $F = file name ...

press ok ...

u can also change the image's type like (JPG , BMP , GIf and many others ...)

thanks , smsj91
0
 
LVL 11

Accepted Solution

by:
Jason210 earned 1500 total points
ID: 12053536
Sorry ImageryGrl, it doesn't actually come with Photoshop! I must ahve put it in myself!Write this Java script in notepad, and then save the file as AddFileName.js (or whatever), place it in your Presets/Scripts folder (located inside the Photoshop CS install folder) and then select it from File, Scripts, AddFileName.js
Here is the script:

// this script is a variation of the script addTimeStamp.js that is installed with PH7

if ( documents.length > 0 )
{
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;

try
{
var docRef = activeDocument;

// Now create a text layer at the front
var myLayerRef = docRef.artLayers.add();
myLayerRef.kind = LayerKind.TEXT;
myLayerRef.name = "Filename";

var myTextRef = myLayerRef.textItem;
myTextRef.contents = docRef.name;

// off set the text to be in the top left corner
myTextRef.position = new Array( 12, 20 );
}
catch( e )
{
// An error occurred. Restore ruler units, then propagate the error back
// to the user
preferences.rulerUnits = originalRulerUnits;
throw e;
}

// Everything went Ok. Restore ruler units
preferences.rulerUnits = originalRulerUnits;
}
else
{
alert( "You must have a document open to add the filename!" );
}




0
 

Author Comment

by:ImageryGrl
ID: 12176282
This does not seem to be working.  I am working on a MAC OS 10.26 with Photoshop CS
When I try to run the script it gives me the following error:

Error8: Syntax Error  Line 1
\rtf\mac\ansicjpg10000\cocoartf102

Any ideas how to correct?
0
 
LVL 11

Expert Comment

by:Jason210
ID: 12180869
Oops. I had no idea you were using a MAC!!! I don't know much about MACS- or whether or not this script will work on a MAC. It should do, but I've no way of testing it.
0
 

Author Comment

by:ImageryGrl
ID: 12193668
I was able to use other JS files in Photshop to kluge together a working script!  WooHoo

Also, with Photoshop PS it comes with a JavaScript resource guide - good stuff in there too!

Thanks again!
0
 
LVL 11

Expert Comment

by:Jason210
ID: 12194737
Glad to be of help!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll explain how to change the color of a selection in Photoshop. I'm sure there are a couple different ways to do this in photoshop, but this is my preferred method in Photoshop. I am using Photoshop CS6 and I will be adjusting the…
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question