tenchy
4th August 2009, 03:40 PM
This will be last version honest guv, promise!
Here is an updated v5 framing script based on one I posted some time ago with the addition of user selectable sizes and colours.
There are some limitations, in that any text added will be same colour as the inner border is set to, and also the relative positions of the logo and text are fixed, as is the text size. Turning these off gives you a great deal of freedom with the resizing.
This script will take any image size and resize it with a 2 colour border, place a title that comes from the filename in the left bottom of the frame, and add your logo to the right bottom corner of the frame.
The logo needs to be a PNG file, and about 14 pixels high. (with my settings as they are for frame width etc).
It will operate on a folder full of images, and do them all in a batch. You can specify a different output folder from the input folder (though I always use the same - put copies of the full size images in an empty folder called framed).
The script does not damage the originals, it only saves copied of them with the same filename but with '-framed' added to it.
Before saving, an Unsharp Mask is applied with either the default settings or from user input. Same settings are applied to all images, so as with any batch process some compromise needs to be made.
It will resize most images to be under the 170Kb limit for this forum. Some images with lots of detail throughout may need re-opening in Photoshop and saving with a bit higher compression.
My tests with 35meg TIF source files, all images with any blue sky in them came down to 130K to 160K, my 'old wood' image and a similar one came out at 200K so needed a re-save.
When you run the script in Photoshop (from File/Scripts) you need to close all open images beforehand.
Changes from V4 (here http://www.photography-forum.org/showthread.php?t=34318) are:
User settable max image dimension range 100 to 9999 pixels inclusive.
User settable inner border width range 0 to 500 pixels inclusive.
User settable outer border width range 0 to 500 pixels inclusive.
User settable inner border colour using Windows colour picker.
User settable outer border colour using Windows colour picker.
On a typical Windows based Photoshop CS3 system unzip this file into the following folder:
C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts\
To cutomise this to your own requirements just open the file in notepad or other simple text editor (Word or wordpad not recommended, they wil probably break the script!!!)
I've marked the sections of code with asterixes to make them easy to find.
This is the only bit that you will have to edit:
(It starts on line 305)
//************************************************** ***************************************
doc.info.author = "Your name";
doc.info.title = "Picture by your name";
doc.info.caption = "Please email you@your.address.com for any suspected copyright infringements."
//doc.info.captionWriter = "Your name"
//doc.info.keywords = ["Photo","Camera","Lens","Wedding","Portrait"]
doc.info.ownerUrl = "your email or website address";
//doc.info.city = "Bradford"
//doc.info.provinceState = "West Yorkshire"
doc.info.country = "England";
doc.info.copyrightNotice = "Copyright © your name 2009";
doc.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK;
//************************************************** ***************************************
Just change the texts within the double quote marks. These are just suggestions, you can put what you want in.
The lines that start with // are disabled. To enable them, just delete the //, then edit the text within the double quotes.
Have fun.
Screen grab of script to show what it looks like:
74110
Typical image output from settings above:
74111
Script to download:
74109
Here is an updated v5 framing script based on one I posted some time ago with the addition of user selectable sizes and colours.
There are some limitations, in that any text added will be same colour as the inner border is set to, and also the relative positions of the logo and text are fixed, as is the text size. Turning these off gives you a great deal of freedom with the resizing.
This script will take any image size and resize it with a 2 colour border, place a title that comes from the filename in the left bottom of the frame, and add your logo to the right bottom corner of the frame.
The logo needs to be a PNG file, and about 14 pixels high. (with my settings as they are for frame width etc).
It will operate on a folder full of images, and do them all in a batch. You can specify a different output folder from the input folder (though I always use the same - put copies of the full size images in an empty folder called framed).
The script does not damage the originals, it only saves copied of them with the same filename but with '-framed' added to it.
Before saving, an Unsharp Mask is applied with either the default settings or from user input. Same settings are applied to all images, so as with any batch process some compromise needs to be made.
It will resize most images to be under the 170Kb limit for this forum. Some images with lots of detail throughout may need re-opening in Photoshop and saving with a bit higher compression.
My tests with 35meg TIF source files, all images with any blue sky in them came down to 130K to 160K, my 'old wood' image and a similar one came out at 200K so needed a re-save.
When you run the script in Photoshop (from File/Scripts) you need to close all open images beforehand.
Changes from V4 (here http://www.photography-forum.org/showthread.php?t=34318) are:
User settable max image dimension range 100 to 9999 pixels inclusive.
User settable inner border width range 0 to 500 pixels inclusive.
User settable outer border width range 0 to 500 pixels inclusive.
User settable inner border colour using Windows colour picker.
User settable outer border colour using Windows colour picker.
On a typical Windows based Photoshop CS3 system unzip this file into the following folder:
C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts\
To cutomise this to your own requirements just open the file in notepad or other simple text editor (Word or wordpad not recommended, they wil probably break the script!!!)
I've marked the sections of code with asterixes to make them easy to find.
This is the only bit that you will have to edit:
(It starts on line 305)
//************************************************** ***************************************
doc.info.author = "Your name";
doc.info.title = "Picture by your name";
doc.info.caption = "Please email you@your.address.com for any suspected copyright infringements."
//doc.info.captionWriter = "Your name"
//doc.info.keywords = ["Photo","Camera","Lens","Wedding","Portrait"]
doc.info.ownerUrl = "your email or website address";
//doc.info.city = "Bradford"
//doc.info.provinceState = "West Yorkshire"
doc.info.country = "England";
doc.info.copyrightNotice = "Copyright © your name 2009";
doc.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK;
//************************************************** ***************************************
Just change the texts within the double quote marks. These are just suggestions, you can put what you want in.
The lines that start with // are disabled. To enable them, just delete the //, then edit the text within the double quotes.
Have fun.
Screen grab of script to show what it looks like:
74110
Typical image output from settings above:
74111
Script to download:
74109