Photoshop Script for Border (with Exif data)

Status
Not open for further replies.
I have now added a script download page for example scripts and added one new script just to start it off.
 
Right just added a second example script, so that's four in total.

Cowasaki's scripting home page: www.cowasaki.co.uk

EBS (EXIF Border script) page: HERE

Example scripts page: HERE
 
Woops ! :bang:

Slight fault in the script for Windoze users which has now been fixed.

(New version uploaded)

If you want to avoid downloading and installing just make the following changes for WINDOWS USERS ONLY.

In file USER DATA.LIB

Change these lines (line 109-113)

// running on a PC

FL_UsersDocumentsDirectory = "C:/Program Files/Exif Border/";
FL_UsersPicturesDirectory = "C:/Program Files/Exif Border/";
FL_UsersAutoSavesDirectory = "C:/Program Files/Exif Border/";


NOTE WE HAVE JUST REPLACED THE %20 etc with spaces

In file Cow_Library.lib

Change line number 28

if(temp.charAt(2) == "/")

and don't forget the curley bracket off the end :)
 
I wouldn't let it lie !

Version 1.1.1 coming later :)

New with italic text, WARPed text, Multiple text items, Multi line text for EXIF (if required!).
 
Right new version uploaded complete with the additions outlined above and the fix for Windows! :gag:

NOTE: The UPGRADE instructions are on the site and will avoid you having to mess about too much with your own scripts.

I will be leaving the EBS script updates now whilst I get back to the contact sheet script, DVD cover script and passport picture automator script.....

EBS - Warp-Example.jpg




 
Might be a wee problem here.

When default run. after changin userdata, I get Error 48 File or folder does not exist

Line 0 /////////////////////////////////////////////////////
 
Try saving your user data then download the full version and just change the relevant lines in the user data file then see what happens.
 
Try saving your user data then download the full version and just change the relevant lines in the user data file then see what happens.

By full version, if you mean 1.1.1 on your website, then that's just what I did?

Your previous version works a treat, but will give this new one another try.
 
Nope, same error.

Also if I double click just the default script outwith CS2, I get

Line 138 error 'red' is undefined.


Anyway, the weekend beckons!
 
thought i better come in and say thanks for the script.downloaded it when i joint the site last week and am liking it thank you.one small problem when using it on images taken with my sigma 180 macro,it says in the exif data that the lens is a canon (lens:ef180mm f3.5L macro usm) do i need to change something ?
 
Nope, same error.

Also if I double click just the default script outwith CS2, I get

Line 138 error 'red' is undefined.


Anyway, the weekend beckons!


Do you mean: Also if I double click just the default script without CS2, I get .....

If so then it is not designed to be run seperately from Photoshop OR without a picture loaded into Photoshop. I will take a look now....

Did you copy the new library files into Cowlib? I have just tested it and its all working well here. I am running CS3 though but cannot see what difference CS2 would make the the changes I added !
 
thought i better come in and say thanks for the script.downloaded it when i joint the site last week and am liking it thank you.one small problem when using it on images taken with my sigma 180 macro,it says in the exif data that the lens is a canon (lens:ef180mm f3.5L macro usm) do i need to change something ?

Look at this section in the USER DATA.lib file

Code:
/////////////////////////////////////////////////////////////////////////////////////////////
//
// Lens conversion LENSexif is returned value, LENSshow is value to be substituted.
//
/////////////////////////////////////////////////////////////////////////////////////////////
//

LENSexif = new Array(10);  //Do not change this line unless you own more than 10 lenses  
LENSshow = new Array(10);  //Do not change this line unless you own more than 10 lenses  

LENSexif[1] = "18.0-200.0 mm f/3.5-5.6";
LENSshow[1] = "Nikon AF-S 18-200mm f/3.5-5.6 VR2 DX ED IF";
LENSexif[2] = "50.0 mm f/1.8";
LENSshow[2] = "Nikon AF 50.0 mm f/1.8";
LENSexif[3] = "105.0 mm f/2.8";
LENSshow[3] = "Nikon AF-S 105mm f/2.8 G IF-ED";
LENSexif[4] = "XXX";
LENSshow[4] = "?";
LENSexif[5] = "XXX";
LENSshow[5] = "?";
LENSexif[6] = "XXX";
LENSshow[6] = "?";
LENSexif[7] = "XXX";
LENSshow[7] = "?";
LENSexif[8] = "XXX";
LENSshow[8] = "?";
LENSexif[9] = "XXX";
LENSshow[9] = "?";
LENSexif[10] = "XXX";
LENSshow[10] = "?";
The script just reads the EXIF data. This information above is used to RENAME lenses. The reason for this is that sometimes people want to give their lenses a shorter name or their full 'Sunday' name.

Change the line that starts LENSexif[1]

to >> LENSexif[1] ="ef180mm f3.5L macro usm";

which selects the lens you wish to rename and then.....

Change the line that starts LENSshow[1]

to >> LENSshow[1] = "Sigma 180mm blah blah blah";

which tells the script what to replace that with.

NOTE: I have included my three post AES lens in order to demonstrate....
 
Can anyone that is running version 1.1.0 or 1.1.1 let me know what script,OS and CS version they are using (please reply on the thread as people keep filling my PM box !)
 
Hi Darren

Can you give me a bit more info on the different directories and their uses. - V.1.1.1 XP PRO, CS3

FL_UsersDocumentsDirectory = "J:/Exif Border/";
FL_UsersPicturesDirectory = "J:/Exif Border/";
FL_UsersAutoSavesDirectory = "J:/Exif Border/";

Auto Save is the one it will save a file to, but what are the others?
 
Hi Darren

Can you give me a bit more info on the different directories and their uses. - V.1.1.1 XP PRO, CS3

FL_UsersDocumentsDirectory = "J:/Exif Border/";
FL_UsersPicturesDirectory = "J:/Exif Border/";
FL_UsersAutoSavesDirectory = "J:/Exif Border/";

Auto Save is the one it will save a file to, but what are the others?

They are there to give options elsewhere and also for future expansion. The less that needs to be added later the better.

Yes you got the FL_UsersAutoSavesDirectory right.

The variables FN_IMFile & FN_SignatureFile are set from FL_UsersPicturesDirectory in the script 'USER DATA.lib"

The variables FL_UsersDocumentsDirectory & FL_UsersPicturesDirectory will mainly come into their own later when user interaction options are included. But they are there for use by users now. You might for example have your signature file in the Documents directory and the icon file in the Pictures directory.

Oh and did you notice line 41 - Thanks :)
 
Hey, MattyH... are you still hosting this script? I get an 'Authentication Required' message when I click the link.

EDIT: DOH! Didn't see all those other pages... found it now!
 
169 for the upgrade :)

Oh love the fact i can copy my prefs to an override file so i dont have to keep editing it every time theres an update :) nice touch :) works a treat :)


£229 for the entire CS4 design suite (student)
 
I dont know if ive missed it as theres some many postings, but is there an easy loading and instructions for use?
 
Well i've just received the Adobe official javascript reference book for CS2 at last so hopefully I should be able to implement even more! The CS2 book was only £4 rather than £35 for the one for CS3/4 and has the advantage that if it works for CS2 it will work for CS2,3 & 4 !

I am still waiting for any confirmation of this working properly on any specific versions of elements for mac or pc. If anyone is using either of these I would appreciate details AND if you could I would appreciate information of the exact location of the script folder and how to access the script from within the program so that I can add this to the web site instructions.
 
Just sorted the script out for E-510

Some things people who own Olympus E-510 might want to know:

Olympus have called the camera "E-510 " with 11 spaces so if you want to change the name do it like this:

Both changes are to the USER DATA.lib file


var RenameMyCamera = "E-510 "; // with 11 spaces (ie E-510 then press space 11 times) making the name 16 character long
var RenameMyCameraAs = "Olympus E510";

They also don't name the lens correctly so you need to add the following:

LENSexif[1] = "?";
LENSshow[1] = "Olympus Zuiko 14-42mm F3.5-5.6";


plus you need to alter the file "EXIF Border Lib.Lib" by changing two lines

Code:
// Raw xml data to extract lens info
// Only available on RAW images?
var xmldata = AD.xmpMetadata.rawData;
        
try {
     	
    	var pattern = /(.*<aux:Lens>)(.*)(<\/aux:Lens>)/;
    	var results = xmldata.match(pattern);
    	if (results)
    		lens = results[2];
    	else {lens = "?"; EXlens = false;}
     	
}

catch(err) {
    	lens = "?"; EXlens = false;
}
Look through the file till you find a section like that above and just delete the parts of the lines that say "EXlens = false;"

NOTE: Do not change anything else. remember ALL you need to do is find the above code and remove the parts I have mentioned. eg the line that says lens = "?"; EXlens = false; becomes lens = "?"; and change the line four above that in a similar way. I will include this in the next version but there is little point uploading a new version for this change which will not affect many people anyway.

--------------

Also the shutter speed is not stored correctly either so a quick change to the EBS - default script file too:

var EXshutterspeed = false; // does not work on Olympus E-510 !!

to turn that function off too.

--------------

I will look through the Olympus EXIF data when I have some time and find out if this information is stored differently then write in some alternatives just for that make. Anyone else got any problems with their EXIF data being printed then please let me know as I can only fix it when I know it is not working and when I have the EXIF data in a picture so that I can test it here.


CHRIS - Tried to email you the above with corrected files but when I replied I got a email rejection reply !!
 
Help....

I try to run any of these scripts and get an error like this :-

Error 48:file or folder does not exist.
Line: 80
-> //@include "Cowlib/EXIF Border Initialise.lib"

I am using CS3 and Vista 64bit. which puts abobe in program files (86)/adobe/..

Jez.
 
Help....

I try to run any of these scripts and get an error like this :-

Error 48:file or folder does not exist.
Line: 80
-> //@include "Cowlib/EXIF Border Initialise.lib"

I am using CS3 and Vista 64bit. which puts abobe in program files (86)/adobe/..

Jez.

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.
 
If anyones interested, Ive got a file with a few action scripts in them that create borders around photos, drop shaddow borders, frames, the lot. If you want I can put them on my server as a zip file and people can download.

Regards, James
 
If anyones interested, Ive got a file with a few action scripts in them that create borders around photos, drop shaddow borders, frames, the lot. If you want I can put them on my server as a zip file and people can download.

Regards, James

I be interested please send us the link :thumbs:
 
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.

What cowlib folder.... ? :cuckoo:

Ohhhhh That one... DOH !!!

Thanks..
 
Click for more frames

Theres the link for the zipped up frames. Theres only 3 files in the zip, but inside each action is about 10 different frames.

Ive tested/used most if not all of them and find that they work best on images that are around 800-1500pixels on longest side. Im sure theres a way to customize them to make them work better on bigger images though.

Put the actions into presets->photoshop plugins or Presets->actions depending on your photoshop version.

Please anyone feel welcome to download.. and any problems just PM me or comment here (but I might not see it here ;) )

Regards, James
 
Not too sure what I did right this time but your scripts now work a treat with CS4.

Many thanks for your hard work.
 
why do i get a pasword request, am i being a tard ?
 
Status
Not open for further replies.
Back
Top