PDA

View Full Version : Two scripts to add simple frames to your images



tenchy
14th October 2008, 05:01 PM
These scripts are based on Paul's (PMR) work, and I have modified them to resize any images in the target folder to 750pixels along longest edge and resample to 72 ppi.
Then it adds a thin white border and black frame, then a .PNG logo of your choice (ideally 14 pixels high) to bottom right, and text to the bottom left.

The text (depending on which script) is either the Photoshop Title, or the filename with the '.jpg' truncated.

The result is an image with longest edge set to 800 pixels, for posting to the forum.

The text '-framed' is added to the filename, so originals are preserved.

A sample of mine is below.

Unzip these into C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts or your equivalent.

I've only tested these on CS3.

Hope they are of use to someone.

They can be edited in notepad or similar (NOT word) to suit your own requirements (for example find the line with "-framed" in it and change to "-copy", for example.


EDIT: Corrected caption of script requester in title version.

karenl
14th October 2008, 07:57 PM
Wow!! I haven't tried it yet, but how great is that!!?

Thanks so much, will give it a go in a little while and post something up!

K :)

PHIL THE FRAME
14th October 2008, 09:43 PM
cheers, i will try this later:ok::)

tenchy
14th October 2008, 09:59 PM
Forgot to say, it will do all images it finds in the folder you choose, and put all the resized copies in the other (or same) folder you specify.

It doesn't do anything to the originals.

mogawowo
15th October 2008, 05:25 PM
i will be pinching this thankyou!

karenl
16th October 2008, 10:23 PM
Hiya

I've never used scripts before, I've unzipped them to the right place (am using CS2), but it has the same filepath.

It's recognising them in scripts, but I don't know how to run it. What do you have to do?

Thanks

Karen :)

flybybry
17th October 2008, 12:04 AM
It's recognising them in scripts, but I don't know how to run it. What do you have to do?

Just click on scripts and then browse, click the script you wish to use and hey presto it works (you must still give it the path of photos etc but that's just a matter of following what's written on the box)

If using the the frame and copyright one you will need to make a .png file as the logo first otherwise it won't work.

I just made this in two seconds and tested the script and it's excellent

tenchy
17th October 2008, 08:56 AM
Karen, once you have the script 'installed' (which if it's saved in the Photoshop folder path might be after you close and restart Photoshop) just select it from File/Scripts, or browse to it with File/Scripts/browse as FlyByBry has said.

You don't need any images open when you do it.

Once it runs you'll see a yellow box with browse buttons.

Browse to a folder containing a batch of images that you want the frame etc added to, a folder with your logo PNG in, and finally a destination folder for the framed images (I always use same one as source images)

Then you will see a bunch of windows flashing up and disappearing, then once it's finished, back to a blank PS. Actually, I might just add a 'All Done' message.

However, let me know if it does work for you or not, I think it is CS2 compatible but I only have CS3.

tenchy
17th October 2008, 09:55 AM
I've added a simple alert to tell you when the script has finished running it's batch process.

If anyone is interested I have another version which executes a very small external utility to strip out all the exif data, which saves about 20K of filesize!

I'll upload that if anyone wants it.

karenl
17th October 2008, 09:42 PM
Not working for me I'm afraid!!

I get this! Any ideas?

K :)

PMR
17th October 2008, 09:53 PM
Just edit the script with ExtendScript Toolkit or a Text Editor

Go to line 60/61 and you will will the line has been split



win.panel0.panel1.logo
.text = decodeURI(selectedFile.fsName);


make it into one line and it should then work.



win.panel0.panel1.logo.text = decodeURI(selectedFile.fsName);

karenl
18th October 2008, 01:03 PM
Fab thanks!

K :)

Rsboy82
13th November 2008, 11:19 AM
wow this is great, ive been using Photoshop for a while and never really thought about this, cheers for the tip

tenchy
13th November 2008, 11:30 AM
No probs. Glad to share the wealth!