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
  #31  
Old 09-06-2004, 09:53 AM
Junior Member
 
Join Date: Sep 2004
Posts: 3
Thanks! and one question

This thread was extremely helpful to me in processing a large number of photos. Excellent descriptions.

One question: is there a way to add a colored (black) background to the text box that surrounds the red letters? sometimes photos have varied colors that makes it difficult to read the filename. I looked around and saw commands like "background-color #000000;, but couldnt get the syntax right.

Let me know if this is possible.

thanks

Jminer
Reply With Quote
  #32  
Old 09-06-2004, 10:56 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by jminer
This thread was extremely helpful to me in processing a large number of photos. Excellent descriptions.

One question: is there a way to add a colored (black) background to the text box that surrounds the red letters? sometimes photos have varied colors that makes it difficult to read the filename. I looked around and saw commands like "background-color #000000;, but couldnt get the syntax right.

Let me know if this is possible.

thanks

Jminer
Glad you found this useful. Me too. I can barely spell "scripting" and it gave me an opportunity to learn something.

re:"One question: is there a way to add a colored (black) background to the text box that surrounds the red letters?"

I'm sure there's a way to script this, but this may be a whole lot easier if time is of the essence: Following the command in the action that calls the script I would record the application of a Layer Style to the Text layer where effects such as Stroke (using a contrasting color) and perhaps others if needed are applied to make the text stand out regardless of image.

Would this get you anywhere?

~Danny~
Reply With Quote
  #33  
Old 09-06-2004, 09:52 PM
Junior Member
 
Join Date: Sep 2004
Posts: 3
almost got it

Danny,

I am almost there. I recorded an action in photoshop that runs before the filename. it copies the picture, then enlarges the canvas, then creates a new black layer then pastes the picture on top, then runs the filename script.

this works really well. except that my canvas enlargement defaults to the "from the center" setting in stead of "from the top center". I dont understand why this is. it even says top in the description of the action.

Any idea why the action defaults to the center? It works correctly when I record it.

This is photoshop, not scripting.

Jminer
Reply With Quote
  #34  
Old 09-06-2004, 10:22 PM
Junior Member
 
Join Date: Sep 2004
Posts: 3
OK, Now I got it to work

the solution was to change the background color to black (duh!) and enlarge the canvas. then run the script. I packed it all away in a droplet and will be converting a few hundred photos with this trick.

thanks much!

Jminer
Reply With Quote
  #35  
Old 09-06-2004, 11:24 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,593
Quote:
Originally Posted by jminer
One question: is there a way to add a colored (black) background to the text box that surrounds the red letters?
OK, I´m on it....
Quote:
Originally Posted by jminer
the solution was ..........
Oops, maybe too late.

You should find below a "Version 2.0" of AddFileName. Besides some general (internal) housekeeping chores, I put in the background behind the text. Also you can now choose the colors - the text and background will be in the foreground / background colors of PS. Default <D> will be black text on white background, but you can probably think of something much better.

I think that the size of the text could vary with the size of the image .. but that's something for tomorrow.

Quote:
Originally Posted by DannyRaphael
...you have a pretty good chance of being able to figure out Chevys if you have access to a couple Chevrolet tech manuals.
I do quite a bit of work in VBasic (Access), writing JavaScript is like being on vaction. Concise, direct and no fussing => fun!

Roland
Attached Files
File Type: zip AddFileName_2.zip (836 Bytes, 33 views)
Reply With Quote
  #36  
Old 09-08-2004, 05:43 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by byRo
OK, I´m on it....
Ro... you da man. It's never too late to make code enhancements.

You just elevated yourself to "My JS hero!"

Well done and greatly appreciated.

- - - - - -

Jminer: Glad you came up with a creative solution. Way to go.
Reply With Quote
  #37  
Old 03-21-2005, 12:33 PM
Junior Member
 
Join Date: Mar 2005
Posts: 1
I've just found the forum while looking for information about filename text layers and found this really interesting thread . Even if not active now I though it was the best place to post my question:

How can I create a layer displaying the DATE when the picture was taken instead of the filename? Any ideas appreciated.

Thanks
Reply With Quote
  #38  
Old 03-21-2005, 03:41 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by yann_
I've just found the forum while looking for information about filename text layers and found this really interesting thread . Even if not active now I though it was the best place to post my question:

How can I create a layer displaying the DATE when the picture was taken instead of the filename? Any ideas appreciated.

Thanks
Welcome, Yann...

It seems like this should not be a difficult thing to script, but I did not have a lot of success finding script examples.

How are your VBA or Java scripting skills? If strong, the following information may be helpful:

http://www.shotgraph.com/script_photo_src.htm
http://www.adobeforums.com/cgi-bin/w...64.8@.3bb6ddf3

If you don't have strong scripting skills (I certainly do not), look into a program called Exifer (click HERE). It looks promising.

~Danny~
Reply With Quote
  #39  
Old 04-28-2005, 04:06 PM
Junior Member
 
Join Date: Apr 2005
Posts: 1
Scripting with a Mac?

I am trying to add the filename to may photos using the scripting function. I have gotten as far as downloading the file from Adobe and installing it on my computer, however, when I attempt to use it in Photoshop>Automate>Scripting...there is nothing that says AddFileName. I only have a few options like Color Match, AdjustLevels etc., I'm pretty sure it's installed right.

Any advice for Mac users?
Thanks
Reply With Quote
  #40  
Old 04-28-2005, 06:27 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
Quote:
Originally Posted by sulrich
I am trying to add the filename to may photos using the scripting function. I have gotten as far as downloading the file from Adobe and installing it on my computer, however, when I attempt to use it in Photoshop>Automate>Scripting...there is nothing that says AddFileName. I only have a few options like Color Match, AdjustLevels etc., I'm pretty sure it's installed right.

Any advice for Mac users?
Thanks
Gemerally speaking MacOS doesn't need file name extensions like Windows does, but Mac/PS has this requirement for some file types. So the following is a shot in the dark...

Open the folder that contains the Color Match, AdjustLevels, etc. script files -- the ones that show up in the Scripts menu.

Do their file names end with ".js"? If true and the file you downloaded from Adobe does not, change its file name accordingly.
Reply With Quote
  #41  
Old 01-15-2006, 11:05 AM
Junior Member
 
Join Date: Jan 2006
Posts: 2
Photos with lots of text

I have been reading your postings dealing with AddFilename Script. I am working on a large project (about 3000 photos) for a family dvd. I am just learning about scripting in Photoshop. I bought a book on JavaScript and am beginning to teach myself the code. My question is, is there a way to fit lots of text onto a photo with this script. I have edited the current script to get rid of everything but the filename (which is the text i want displayed on the screen). The problem is, if there is more than 5-6 words than the rest is lost off the edge of the photo. I have some photos that have 10-15 words in the filename. I am using a font size of 8. Any suggestions would be greatly appreciated.

Last edited by dragin; 01-15-2006 at 11:48 AM.
Reply With Quote
  #42  
Old 01-15-2006, 11:45 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,593
Welcome to RetouchPRO, dragin.

OK, gimme a couple of minutes and I'll fix something up.

Reply With Quote
  #43  
Old 01-15-2006, 11:57 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,593
OK, here you go.

Passed the text to the left side. Now you can occupy the whole width of the image.

Attached Files
File Type: zip Add FileName_3.zip (874 Bytes, 15 views)
Reply With Quote
  #44  
Old 01-15-2006, 12:24 PM
Junior Member
 
Join Date: Jan 2006
Posts: 2
Ro,

Thanks for that information. You didn't waste any time. If the text will not fit on the photo in one line, can the text be wrapped around and placed below the beginning text, or do I need to shorten the filename and include only the most relevant information. Here is an example of a photo just to give you a illustration: Hazel, Loretta, Mary (holding Wade), Jenny, Cody, Denzil, and Blanche Agin

Thanks again for your insight.

D.R.
Reply With Quote
  #45  
Old 01-15-2006, 01:41 PM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,242
This would take a little programming, but I'm pretty sure it could be done by doing something like the following:
* Determine the file name length
* If longer than XX characters (XX = max width), then parse the file name string until you find the first "space" character before the XX max length and replace it with a <cr> (carriage return) character. This would be the equivalent of pressing Enter in the text dialog to get a new line.

Ro - you up to another tweak?
Reply With Quote
  #46  
Old 01-15-2006, 02:29 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,593
OK, here we go....

But, to make sure thing fit in, you may have to edit the script a little, I left the variables at the top of the script.
Don't worry just open with (if using PC) Notepad (not Word) and change the numbers.
Code:
var pxSTART_VERT = 90; //Starting height in percent of total height
var inTEXT_SIZE = 12; //Font size
In this case the text starts at 90% of the way down, with font size 12.

Attached are some alternatives using different settings.

Attached Images
File Type: jpg AddFileName-4A.jpg (98.9 KB, 14 views)
File Type: jpg AddFileName-4B.jpg (99.6 KB, 13 views)
Attached Files
File Type: zip Add FileName_4.zip (1.1 KB, 8 views)
Reply With Quote
  #47  
Old 04-15-2009, 12:43 AM
Junior Member
 
Join Date: Apr 2009
Posts: 1
Re: Filename used as text layer

Hi all,
this this was very usefull to me, but i want to take it further:
i have an excel list of names that corresponds with the people on the picture,

FILENAME NAME
img_001 Jack
img_002 Joe
img_003 Luke
img_004 Averal
...

Can it be done to let photoshop lookup the filename in the list and place the NAME in a text layer?

Thank you in advance.
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