RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read Chat Room


Software Photoshop, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Reply
 
Thread Tools
  #1  
Old 12-15-2003, 09:25 PM
mdi's Avatar
mdi mdi is offline
Junior Member
 
Join Date: Dec 2003
Location: INDIANA
Posts: 5
Filename used as text layer

I am trying to find a quick batch method to create a text layer with the photo file name. I want to build a DVD proof to add to my slide show. So when I build the DVD slide show of pictures of my kids, the filename will show up on the photo. Which will allow my wife to sit down and decide what photos to order of our kids.
I want to create an action to open the file, create a text layer that includes the filename, resave it in another directory as a jpeg. Thanks
Reply With Quote
  #2  
Old 12-15-2003, 10:47 PM
VidKid's Avatar
Junior Member
 
Join Date: Apr 2002
Posts: 8
If you have PS 7 or CS(8) the Picture Package will automatically put the filename caption on or below the picture. The size of the font can also be specified.

You could also use the Contact Sheet II which will places the filename caption and is bundled with PS 5.5,6,7,and 8, but I prefer to use Picture Package.

It's handy for customer's proofs and a time saver.

In PS: File>Automate>Picture Package - or- Contact Sheet II

VidKid
Reply With Quote
  #3  
Old 12-16-2003, 06:46 AM
mdi's Avatar
mdi mdi is offline
Junior Member
 
Join Date: Dec 2003
Location: INDIANA
Posts: 5
RE Text Layer

I have PS 7.0 and I know how to do that, but I want to be able to create a new jpeg file from the original that is saved so I can include all of the edited jpeg's (with filename ) in a DVD slideshow. Then people can view the DVD photo by photo and the filename will be on the proof photo. They will be able to check off a proof listing of all of the photos that they want me to order online. This is a way for my wife to sit down in front of the TV and view each photo. The filename on the photo will allow her to view the photos and not have to mess with the computer. She marks the printed contact sheet cross referenced with the jpeg's that she likes after she has viewed it on the TV.

Thanks
Reply With Quote
  #4  
Old 12-16-2003, 07:21 AM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
If you have Photoshop7, and the scripting feature, there is a script that will add the filename as a text layer. Let me know if you want the script, and I'll post it.
Reply With Quote
  #5  
Old 12-16-2003, 10:46 AM
mdi's Avatar
mdi mdi is offline
Junior Member
 
Join Date: Dec 2003
Location: INDIANA
Posts: 5
How do use a script file in PS 7.0. I apologize but I am a newcomer to PS and I am hust starting to learn to use actions.
If you could post that script I would appreciate it !

Thanks
Reply With Quote
  #6  
Old 12-16-2003, 11:43 AM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
First thing you need to do is go to Adobe's website, and download the "Scripting" addin.
I will post the file later tonight.
Reply With Quote
  #7  
Old 12-16-2003, 09:23 PM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
Once you install the scripting plugin, follow these steps:
Download this script and save it to a folder. (I created a subfolder under Photoshop called Scripts).
Open Photoshop
Open a file (this script works on the active document.)
Select from the main menu: File>Automate>Scripts> "browse" to the folder where you saved the script, and select it.
It puts the file name in the lower right corner, in red texts.
You can edit the file with notepad to change the color, or position.


If you know how to write javascript, you can edit this, and add batch capabilities.
Reply With Quote
  #8  
Old 12-16-2003, 09:32 PM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
oops, forgot the attachment.
I had to zip this, so it must be "unzipped" before you can use it.
Attached Files
File Type: zip add filename.zip (510 Bytes, 382 views)
Reply With Quote
  #9  
Old 12-17-2003, 02:46 PM
mdi's Avatar
mdi mdi is offline
Junior Member
 
Join Date: Dec 2003
Location: INDIANA
Posts: 5
Vikki,

Thanks for all of your effort ! I have searched for the scripting plugin at Adobe with no luck. Any suggestions ?
Reply With Quote
  #10  
Old 12-17-2003, 06:08 PM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
Here is the link to the Windows version:
http://graphicssoft.about.com/gi/dyn...3FftpID%3D1536

Here is the link to the MAC version:
http://graphicssoft.about.com/gi/dyn...3FftpID%3D1535
Reply With Quote
  #11  
Old 12-17-2003, 06:31 PM
mdi's Avatar
mdi mdi is offline
Junior Member
 
Join Date: Dec 2003
Location: INDIANA
Posts: 5
Vikki,

Thanks ! It works like a charm. Happy Holidays !
Reply With Quote
  #12  
Old 12-17-2003, 06:46 PM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
Great!
Happy Holidays to you too.
Reply With Quote
  #13  
Old 12-17-2003, 07:36 PM
Ed_L's Avatar
Senior Member
 
Join Date: Aug 2001
Location: northwest Indiana, about 45 minutes from Chicago, IL
Posts: 2,824
Thanks for posting that Vikki. I decided to try it out, and it's easy enough for me, so anyone can do it!

Ed
Reply With Quote
  #14  
Old 03-17-2004, 11:19 AM
Junior Member
 
Join Date: Mar 2004
Posts: 1
filename as text layer script

can you please email me the script at ilesh@ileshshah.com
Thanks in advance...
Reply With Quote
  #15  
Old 03-17-2004, 11:51 AM
Senior Member
 
Join Date: Aug 2001
Location: Arizona
Posts: 883
You can download the script from here. It's posted as a zip file a few threads down on this page.
http://www.retouchpro.com/forums/att...chmentid=11109
Reply With Quote
  #16  
Old 03-22-2004, 03:19 PM
Junior Member
 
Join Date: Mar 2004
Posts: 1
Lightbulb Thanks

Thanks for your help, you save my life and my time.
Juan
Reply With Quote
  #17  
Old 06-18-2004, 09:20 PM
Junior Member
 
Join Date: Jun 2004
Posts: 5
Batching it

Hi......THANKS for the info and the script.
How can you batch it so you can put them on all the pictures in a file? I tried making an action and batching but it didnt work.
Reply With Quote
  #18  
Old 06-19-2004, 09:09 AM
T Paul's Avatar
Moderator
 
Join Date: Aug 2001
Location: USA
Posts: 2,858
How to Batch Rename Files in Photoshop 7

Check out this thread:

How to Batch Rename Files in Photoshop 7

Quote:
Summary:
Using the Photoshop File Browser, open the folder containing the files and select the ones you wish to rename.

Right-click on any of the selected images and click Batch Rename from the context menu. This will open a new window.

Choose to rename the files in the same folder or move them to a new folder.

The File Naming section is where you specify how the files will be named. There are six drop menus and the contents of each one are added together to make the name. The idea is that at least one of the menus (i.e. one part of the file name) will create sequential numbers or letters.
Here are a few other links:
How To Rename a Series of Files With Adobe Photoshop or Photoshop Elements

Photoshop 7: Batch Processing with actions

Last edited by T Paul; 06-19-2004 at 09:16 AM.
Reply With Quote
  #19  
Old 06-19-2004, 09:33 AM
Junior Member
 
Join Date: Jun 2004
Posts: 5
Batching it

Thanks but that one Iknow of. I would like to use the script to put the img number on the front of all in a folder instead of doing one at a time.
Reply With Quote
  #20  
Old 06-19-2004, 09:51 AM
Junior Member
 
Join Date: Jun 2004
Posts: 5
Got It!

Ok, here is what I did and it works. First i loaded the script, downloaded from above, into the presets. (I then deleted the other presets - cause i didnt want to use them). Then it was a simple matter of setting up an action and with the script in the presets it worked fine. Placed the img number on all in the file. Gotta love this forum!
Reply With Quote
  #21  
Old 06-19-2004, 10:11 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Richard. You beat me to it. Glad you got it figured out.

For the benefit of others, here's a detailed "how to"...

INSTALL THE SCRIPT
1. Download the plugin
2. Unzip
3. Copy the JavaScript (.js) file to:
C:\Program Files\Adobe\Photoshop 7.0\Presets\Scripts

...or the PS CS equivalent.

TEST THE SCRIPT
1. Open a test image
2. Image > Duplicate. You don't want to "practice" on an original.
3. Close the original. Further safety.
4. File > Automate > Scripts... Choose "Add FileName" and click Run Script
5. Inspect the results. Note: The script added a text layer and then flattened the image.
6. File > Close the test image without saving
7. If you like what you see, go to WRITE THE ACTION

TO MODIFY THE SCRIPT
If you want to change the font, size or color, you can do this by modifying the script.
1. Right-click on [color=blue]Add FileName.js[/i] and choose Edit from the menu.
2. Change the RGB values to suit (RGB= 255,0,0 = Red).
3. In myTextRef.size = 24; -- replace 24 with desired font size
4. In myTextRef.font = "Arial"; -- replace Arial with desired font style

5. If you want to alter the position of the text, modify this statement:
// myTextRef.position = new Array( 98,98 );

The first 98 = "The bottom of the text will be placed on a horizontal line 98% from the top of the image, that is, 2% above the bottom of the image."

The 2nd 98 = "The last character in the text (RIGHT justified) will be placed against a vertical line that's 98% from the left edge, that is almost to the right edge of the image."

6. File > Save
7. It's always a good idea to test the changed script just to be sure it still works. (See TEST THE SCRIPT above.)

WRITE THE ACTION
1. Open a test image
2. Image > Duplicate. You don't want to "practice" on an original.
3. Close the original. Further safety.
4. Click the CREATE NEW ACTION buttom at the bottom of the Actions Palette. Assign an action name and click Record.
5. File > Automate > Scripts...
6. Choose "Add FileName" and click Run Script
7. File > Save as... (chose file format, even if you're not changing file formate), do NOT change File Name, and identify ANY folder or Desktop. It makes no difference which you choose.
8. When you click OK, you may get an additional dialog box for, say, .jpg options. If you do, choose the options and click OK.
9. Click the STOP RECORDING button at the bottom of the Actions Palette.
10. File > Close the test image without saving

PROCESS A BATCH OF IMAGES
1. If you haven't yet, create a folder where processed images will be placed. (\Destination)
2. File > Automate > Batch
3. Action set and Action should be populated with the new action.
4. Source: Folder. Choose (navigate to the folder where the images to be processed reside)
5. Destionation: Folder. Choose (navigate to \Destination) where the processed images will be saved. This overrides what was recorded in the File > Save As... dialog.
6. IMPORTANT: Click ON the "Bypass Action 'Save as' Commands." If you don't, you will have to reply to a dialog box for each image processed, not good for "hands off" automation.
7. Click OK. That should initiate the action, apply it to the source images and put the processed images in \Destination.

I'm pretty sure I caught everything here, but if you run into any problems or have questions, don't hesitate to ask.

Happy batching.

~Danny~
Reply With Quote
  #22  
Old 06-19-2004, 10:20 AM
Junior Member
 
Join Date: Jun 2004
Posts: 5
Detailed

THANKS! Your detailed message sure put mine to shame LOL!
Reply With Quote
  #23  
Old 06-19-2004, 10:27 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by rd1769
THANKS! Your detailed message sure put mine to shame LOL!
I sure wasn't trying to outgun you or show you up, Richard, believe me. There are lots of folks who have very little, if any, action, batch processing or scripting experience. All the gory details were for as much their benefit as mine, since I'd not looked into this script before.

VIKKI: Great script. Meant to thank you for crafting/posting it in the previous message.

~Danny~
Reply With Quote
  #24  
Old 06-19-2004, 10:31 AM
Junior Member
 
Join Date: Jun 2004
Posts: 5
No Problem

My comment was in no way meant to be a slam..... You did a great job and I appreciate it. Just making funny.
Reply With Quote
  #25  
Old 06-19-2004, 12:13 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
No problem... It wasn't taken as a slam; I just didn't want you to feel like you were being upstaged. All is OK.
Reply With Quote
  #26  
Old 07-03-2004, 02:00 PM
Junior Member
 
Join Date: Oct 2003
Posts: 3
I have been trying to figure out how to get rid of the file name extension. Any suggestions or link to a tutorial?

Joel
Reply With Quote
  #27  
Old 07-03-2004, 04:46 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Hi Joel:

Welcome to RetouchPRO. You will need to modify (add a line) to the script. Here's how to do it:

After downloading the script into
C:\Program Files\Adobe\Photoshop 7.0\Presets\Scripts
(or your equivalent),

right-click on the file name and choose edit.

After this line:
myTextRef.contents = docRef.name;

Insert (copy/paste) this line:
myTextRef.contents = myTextRef.contents.substring(0,(myTextRef.contents.length-4));

What this line does is strip off the last four characters of the file name, that is, the period and three character extension.

After you save the updated script, you should be good to either invoke the script directly from the Automation > Scripts dialog or record an action that invokes the script. Then the action can be invoke through Automation > Batch dialog.

HTH...

~Danny~
Reply With Quote
  #28  
Old 07-03-2004, 06:30 PM
Junior Member
 
Join Date: Oct 2003
Posts: 3
Thank you Danny for your repsonse and the info.
It worked great. I am now trying to put my copyright and name in the left corner. If I copied and paste the exisiting script below the one that is there. How would I change the line to add the name? Better yet could you recommend a good tutorial on how to make these scripts? I know nothing about them.
What I want to achieve is something like the image attached. I created an action to increase the canvas size and then run the script to put the name on the border.

Joel
Attached Images
File Type: jpg IMG_7741.jpg (71.7 KB, 22 views)
Reply With Quote
  #29  
Old 07-03-2004, 08:11 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by jrphoto
Thank you Danny for your repsonse and the info.
It worked great. I am now trying to put my copyright and name in the left corner. If I copied and paste the exisiting script below the one that is there. How would I change the line to add the name? Better yet could you recommend a good tutorial on how to make these scripts? I know nothing about them.

What I want to achieve is something like the image attached. I created an action to increase the canvas size and then run the script to put the name on the border.

Joel
Hi again... Glad round 1 worked. More code splicing... (see blue below).

Your example pic was pretty small, so I couldn't see exactly how you formatted the copyright text. Before you copy/paste, you'll want to replace

©2004 - J.R.Photography

below with whatever text you like. Be sure to NOT delete the single quote marks at each end of the text string. If you do, the script will fail.

==========================

// Position file name in bottom righ corner
myTextRef.position = new Array( 98,98 );

- - - - - - - START OF NEW TEXT - - - - -


// *******
// Create a layer for the copyright text
// *******

var nameLayerRef = docRef.artLayers.add();
nameLayerRef.kind = LayerKind.TEXT;
nameLayerRef.name = "Copyright text";

var myTextRef = nameLayerRef.textItem;
myTextRef.color = myColor;
myTextRef.contents = '©2004 - J.R.Photography';
myTextRef.size = 24;
myTextRef.font = "Arial";
myTextRef.justification=Justification.LEFT;

// Position photographer ID text at left, bottom
myTextRef.position = new Array( 2,98 );


- - - - - - - END OF NEW TEXT - - - - -

// Flatten Layers

==========================


Full disclosure. In another lifetime I did a fair amount of computer programming, which is somewhat like auto mechanics. If you have experience working on Fords, you have a pretty good chance of being able to figure out Chevys if you have access to a couple Chevrolet tech manuals.

Although I've barely touched JavaScript, I was able to hack some code that works. In this case I was lucky: my past experience was what got me by.

An experineced JavaScript programmer would be able to achieve the results more efficiently, but functionally this works. Think of what I did as you would a backyard auto mechanic working on your car. At least the steering wheel didn't fall off.

re: Better yet could you recommend a good tutorial on how to make these scripts? I know nothing about them.

So, learning to write scripts is not something one could ever learn from a tutorial. Like learning auto mechanics, it's more like a couple quarters (or maybe more) of community college-type classes in programming to really get your arms around the concepts and fundamental skills. It takes a fair amount of time, effort and practice to become moderately proficient. That's not to say you couldn't do it, because if you can figure out photography and start your own business, you have the drive to succeed and the smarts to figure it out.

If you do a Google search on JavaScript, you'll have enough to read until at least Thursday.

Anyway, it was fun (for me) to tackle this. I learned a few things today myself.

~Danny~
Reply With Quote
  #30  
Old 07-04-2004, 01:10 PM
Junior Member
 
Join Date: Oct 2003
Posts: 3
Thanks alot . It works like a charm.

Joel
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial 05: Converting a Color Image to Black and White grayscale BW DannyRaphael Photo-Art 101 17 05-22-2011 04:55 PM
help with german Photoshop commands please pure Photoshop Help 9 06-21-2010 02:33 PM
select shape Peg Hidden Power Support 7 08-29-2004 06:10 PM
Help needed understanding these layers. peejay Photo-Based Art 3 01-16-2004 08:15 PM
Screen, Multiply Explained... dpnew Hidden Power Support 3 12-28-2003 11:46 AM


All times are GMT -6. The time now is 12:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2008 Doug Nelson. All Rights Reserved