Photoshop Script for Border (with Exif data)

Status
Not open for further replies.
brilliant mate, thats great.

but im getting copywrite darren hill on the side
 
A big, big thanks to cowaski for this ...finally had some time to set this up and it works perfect when using Nikon NEF files. The only problem I had was with the EXIF data for my lens being wiped in the jpeg files. Not a problem with the script something not right with the Nikon jpeg conversion i guess.

Once again thanks :thumbs:
 
when you convert to JPEG different programs retain different amounts of the exit data and some actually allow you to adjust this so of depends on which program you are using!
 
the jpegs i'm using are straight from my D300 ... does anyone know if there are settings on the camera i need to change then?
 
the jpegs i'm using are straight from my D300 ... does anyone know if there are settings on the camera i need to change then?

I don't actually know but why are you using Jpegs straight from the camera? Switch to RAW and the problem goes away plus you gain the multitude of other advantages of shooting RAW, this has been discussed numerous times on here!
 
I use both jpeg and RAW .... jpegs i use for quick edit and posting ... it doesn't cause me a problem as the script works perfect using RAW files ... I just was curious if this is a know problem. (with the jpegs not your script :$)
 
Have you put the cowlib folder inside your scripts folder. This error would suggest that it isn't.

I have tested it with MacOS leopard and CS3 plus Vista64 and CS3. Others have tested it with XP and Vista so it should be working.

I've got the same problem as that. I extracted the cowlib folder into the script folder yet still get the message that either 'Red' is undefined, or 'white' is undefined.

Then if I go into Photoshop CS2 and open an image and go File~script (then select one it tells me the file or folder does not exist.

Any ideas as to whats gone wrong?

I will install them on my pc when I get a chance as thats got CS3 instead.
 
A big thank you to Cowasaki for the script :thumbs:

I was wondering if it would be possible to alter it so that rather than use the filename that we could use the Caption from the metadata as the title, or maybe even an option to choose
 
A big thank you to Cowasaki for the script :thumbs:

I was wondering if it would be possible to alter it so that rather than use the filename that we could use the Caption from the metadata as the title, or maybe even an option to choose

I can't find an entry in the EXIF data called Caption or similar. I have stepped through each entry!
 
No problem, I think its probably in the IPTC, so that would open up a whole new can of worms.
 
I have just been sent a PM asking the following question which I thought may be of interest to others as well so I have decided to answer it in the thread (in fact I would prefer questions asked in the thread so that everyone can read the answers):

Does every variation of the script reference the single user dat.lib file?

What I mean ( i think) is if one were to have multiple flickr accounts for instance, is it possible to set up the script to put a different name under the copyright info?


Yes it is possible to override the information in the User Data file quite easily if for instance you run two companies or have a professional company and an amateur personna here at TP.

The EBS files that sit in the main scripts directory contains a line that includes the USER DATA LIBRARY. After this line has been executed you may add lines that replace the lines in the user directory.

Here is an example that replaces the user's name and company in the file "EBS - Default"....


Code:
[COLOR="lime"]//
//@include "Cowlib/User Data.lib"[/COLOR]

[COLOR="Red"]var UD_Name = "OVERRIDDEN NAME";
var UD_Company = "OVERRIDDEN COMPANY";[/COLOR]

[COLOR="Lime"]// The next library called is to my general library and again do not touch this
//
//@include "Cowlib/Cow_Library.lib"[/COLOR]

The lines in green are the original lines, the lines in red are the extra lines added to override the information ....

You can then save different versions such as

EBS - default (cowasaki)
EBS - default (darrens photography ltd)

I hope that this helps
 
Useful answer Darren :) It's still a great script.

I wonder if it might be a good idea to have a page of useful info like your previous postings on your website.

Is there a way of the script using part of a filename rather than the full filename, eg the file name might be EV0801111_01_11_2008_7227 but I only want to use the EV0801111 as the filename. Currently I rename the source file, but wondered if it could pick the first few characters.

Thanks

Allan
 
Useful answer Darren :) It's still a great script.

I wonder if it might be a good idea to have a page of useful info like your previous postings on your website.

I do, its on the web site :)

Is there a way of the script using part of a filename rather than the full filename, eg the file name might be EV0801111_01_11_2008_7227 but I only want to use the EV0801111 as the filename. Currently I rename the source file, but wondered if it could pick the first few characters.

Yes this would not be too difficult, is it a specific number of characters or characters up to the underscore or what?

I will do it.
 
New version 1.1.2

Minor upgrade to add filename limiting feature for keltic iceman!

The main new features are:

  • Add LimitFileLength variable
  • Add LimitFilechar variable

If these variables are set as follows:

var LimitFilelength = -1;
var LimitFilechar = "";


then NOTHING will happen at all....



If you want to limit the filename to say 8 characters then set the first variable to 8 ie:

var LimitFilelength = 8;
var LimitFilechar = "";


If you want to limit the filename to the first instance of a certain character then set the 2nd variable to that char eg underscore ie:

var LimitFilelength = -1;
var LimitFilechar = "_";


You can also combine these so that the filename is limited to 8 characters AND the character by setting both.



 
Thanks to you all for working so hard on this brilliant post.:clap:


I use CS4 on XP PC with a Nikon D300 and have found that it points to the focal length in 35mm film and do not point to the focal length on the EXIF Data, is there any way this can be corrected?


I have seen earlier in this thread (Dogfish magnet post 72) that a drop shadow could be applied is this still possible?


Earlier in the thread (post 70) 68lbs did a frame with larger border along the bottom only, with double lines of data is this also possible? :thumbs:


Alan
 
I use CS4 on XP PC with a Nikon D300 and have found that it points to the focal length in 35mm film and do not point to the focal length on the EXIF Data, is there any way this can be corrected?

Strange one this, it worked at one point but seems to have broken. I have just worked out why it is not working now and fixed it. I will add the fix to the next version but those wanting the ACTUAL focal length need to make the following changes in the file "EXIF Border Lib.lib"

find the function getExifData() at about line 300ish

and look for the line:

if(stringTemp.indexOf("Focal Length")!=-1){var focal = exifDataArray[n+1];}

change this to:

if( stringTemp == "Focal Length"){var focal = exifDataArray[n+1]; }



now look for the line:

if(EXfilmeq){strTemp = strTemp + " 35mm Equivakent:"+ filmeq + "mm ";}

and change this to:

if(EXfilmeq){strTemp = strTemp + " 35mm Equivalent:"+ filmeq + "mm ";}

This just fixes a spelling mistake !


I will look at the other things shortly....
 
Earlier in the thread (post 70) 68lbs did a frame with larger border along the bottom only, with double lines of data is this also possible?

Try the script EBS - Multiline, this already does the multiple lines for the data at the bottom of the screen...

I am not too keen on the larger border just at the bottom and the above script uses a larger one around all sides but does still do what you want. If people really do want a larger border only at the bottom then let me know.
 
I have seen earlier in this thread (Dogfish magnet post 72) that a drop shadow could be applied is this still possible?

I am not sure how dogfish magnet did that so you will either have to leave it with me to work it out or PM him to share it with us. Either way I will add it if possible to the next update.
 
I think it's about time this was marketted for a donation to TP.

Great work Cowasaki :clap:
 
I think it's about time this was marketted for a donation to TP.

Great work Cowasaki :clap:

If you think its worth a donation then hit the donation button :)

I had nothing to do with this script originally but have sort of taken it over as I had enough time to add all the extra features hence not being sure how dogfish magnet added the drop shadow. I will look this up later in the reference book for Photoshop scripting (I could only afford the CS2 version but this does ensure compatibility with earlier verions:)) I ended up having to buy (should have bought it earlier!).
 
New version 1.1.3

Minor fix to a couple of items in the EXIF data section.

Fixed spelling mistake to "equivalent" in the film equivalent focal length.
Fixed Focal length which stopped working although I am not sure why it ever DID work when I realised why it didn't !


 
Just for anyone new to this thread.

The EXIF Border Script is written in JAVASCRIPT as a script for Photoshop or Elements.

It works on the PC and the MAC exactly the same way.

The installation instructions are different for each computer and are on the site.
 
Darren

Try the script EBS - Multiline, this already does the multiple lines for the data at the bottom of the screen...

I am not too keen on the larger border just at the bottom and the above script uses a larger one around all sides but does still do what you want. If people really do want a larger border only at the bottom then let me know.

Yes I did realise that there is a multiple line one but I would prefere a narrow sides and top if possible please.

Thanks Alan
 
The instructions are on the site but for anyone really stuck this is a quick guide....

MAC

Download the script file by clicking on it from my web site then...

Look in the downloaded folder and you will see lots of files ending with the .js file type and a directory called cowlib. Copy EVERY file and the directory, unchanged, into the folder:

APPLICATIONS::Adobe photoshop CS4::Presets::Scripts

Once you have done that you can run Photoshop and load a photo then goto FILE>>Scripts and click on one of the scripts to run that script.

That is it, all installed and working.....

now to change the script for YOU..

Open the directory cowlib and look for the file "USER DATA.lib" right [CTRL] click this file and select "OPEN WITH" and then select "TextEdit".

Now stretch the window out so it is quite a bit wider and you can take a look at the User Data library file.

Scroll down through the file and you will see several definitions such as:

var UD_Name = "Darren Hill"

change this to

var UD_Name = "YOUR NAME"

etc etc

Once you have finished doing this FILE>>SAVE in TextEdit and run the script again. You will then see your name appearing instead of mine. Once you have this working you can look at the actual "EBS" files in the script directory and make changes to these. These changes will affect how the script changes your pictures such as the colour of borders, how wide they are, copyright notices, inserting logos etc etc.

PC


Download the script file by clicking on it from my web site then unpack the zip file using your unpacking software such as winzip or in Vista just open it!

Look in the downloaded folder and you will see lots of files ending with the .js file type and a directory called cowlib. Copy EVERY file and the directory, unchanged, into the folder:

C:\Adobe\Adobe Photoshop CS2\Presets\Scripts


Once you have done that you can run Photoshop and load a photo then goto FILE>>Scripts and click on one of the scripts to run that script.

That is it, all installed and working.....

now to change the script for YOU..

Open the directory cowlib and look for the file "USER DATA.lib" right click this file and select "OPEN WITH" and then select "Text Editor".

Now stretch the window out so it is quite a bit wider and you can take a look at the User Data library file.

Scroll down through the file and you will see several definitions such as:

var UD_Name = "Darren Hill"

change this to

var UD_Name = "YOUR NAME"

etc etc

Once you have finished doing this FILE>>SAVE and run the script again. You will then see your name appearing instead of mine. Once you have this working you can look at the actual "EBS" files in the script directory and make changes to these. These changes will affect how the script changes your pictures such as the colour of borders, how wide they are, copyright notices, inserting logos etc etc.


Have fun......
 
Darren



Yes I did realise that there is a multiple line one but I would prefere a narrow sides and top if possible please.

Thanks Alan

Ok, that is pencilled in for a future release where you can specify the size of top and bottom borders. Keep looking and it should appear in version 1.1.4
 
Well in relation to the ability to have different sized top and bottom borders! Phew!! This has required a total and utter re-write of the preprep function which is rather complicated to say the least. I am now back to where I was before I started but with this routine completely coded differently. As it is now it can be acheived but I'm off out now with my camera!

Will get back to it tomorrow
 
Contact Strip Script

I will be starting another thread in a few weeks to mark the launch of my contact strip script which will basically take a directory of mixed pictures and spread them 4 x 6, 3 x 5, 8 x 10 or whatever across your sheet and save them as page 1, page 2 etc. I am planning to make this use the same libraries and information data as my current script (as will all the new ones next year!).

If anyone has any ideas as to anything they would like in the script, please let me know. I am planning to allow certain exif data, filenames etc under the picture giving you 1-5 lines above and the same below.

All this is dependant on me having the time to write it but I will give it a go.
 
Note: There might be a slight delay on the contact strip script as I am now looking at writing a user interface front end for the USER DATA library file then possibly one for the main EBS script files so that you can select things with tick boxes and sliders and other such niceties rather than using a text editor ! Not sure yet how easy it is going to be but making a start at the moment.....
 
New version 1.1.4

  • Added the ability to have middle border of differing sizes above and below your picture.
  • Corrected bug where image size was bigger than requested by the size of the outerborder!
  • Added InnerStroke border
  • Added SecondOuter border
  • Added Colour BLUE
  • Corrected spelling of COLOUR to English for all border variables.
  • Complete re-write of PrepImage function to make more sense and make updating easier.

Note this is a big update mainly behind the scenes. If you have your own scripts you will need to make a few minor changes to them. The below lines that are in BOLD need to be ADDED to the borders sections of the EBS file. In the lines that are RED the variables are now spelt correctly so you will need to just change the spelling of COLOUR from COLOR in those lines. Otherwise everything should work just the same!


var InnerStrokeWidth = 0;
var InnerStrokeColour = white;


var StrokeWidth = 3;
var StrokeColour = white;

var BorderWidth = 40;
var BorderColour = red;
var BorderWidthTop = BorderWidth;
var BorderWidthBottom = BorderWidth;


var OuterBorderWidth = 3;
var OuterBorderColour = white;

var SecondOuterBorderWidth = 0;
var SecondOuterBorderColour = blue;


The biggest change of all is the ability to have a larger border at the bottom of the picture which works well with the multiline variable.

I am currently working on a new script which when run allows you to change the user information rather than editing the text file directly! This should make it easier for the less computer literate to modify it all.


 
Well the Java program to create a user interface to edit the library files is going quite well and unless I run aground with a mega problem I should have an alpha test version today or tomorrow.

This will appear as a script (just like the normal scripts) and will be called "EDIT EBS" when run a window will appear on the screen with the user name and company on the screen taken from the user data file (it is just an alpha test version - once this works I can make it change everything). You can then change these and they will be written back to the file.

Once this is tested and working I will add more and more fields to the program so that NON computer literate persons can change all the variables without looking at the source code.

Hope that this makes it a bit easier for those members that find text files intimidating. It also makes for quick changes and it will also be possible to add more features later.

At the moment I could do with PMs from a few volunteer alpha testers using different systems and versions. ie Mac & PC, CS2/3/4 plus I could do with knowing off ANYONE using Elements what they have working.
 
Got it all downloaded and the text changed :)
Only prob I am having is the image size now seems to be 800 x 123 ????????
What have I done wrong???

Edited: I got it sorted, its just me being stupid :)

Can you let me know what it was because I have the same problem, and I have tried a few things but no joy. :bang:

Alan
 
I am having problems with the update (InnerStrokeWidth is undfined line 160) when i run EBS - black border EXIF-only-outside ICON.js
Is it me??
Alan
 
Can you let me know what it was because I have the same problem, and I have tried a few things but no joy. :bang:

Alan

I thought I had fixed it but actually I haven't. Still playing around with it now :bonk: and I have to get up for work in 3 1/2 hrs :(
So if anybody has some idea's maybe I can get some sleep tonight.
 
Status
Not open for further replies.
Back
Top