Script to produce multi image sheets

cowasaki

TPer Emeritus
Messages
19,708
Name
Darren
Edit My Images
Yes
Multi image sheets

I knocked up this quick script tonight to produce multiple images on a new document, you know like those ones you get out of the photo machines where you get 4 passport pictures and 1 larger picture!!

New.jpg


Basically you crop your image in the right PROPORTION then run the script.

The example will produce two passport photos and a double sized picture on a 6x4" document ready to be printed.

You can download the script HERE

Save the .js file into your photoshop script directory and run it as normal.

If you look at the script, which is very short, you will see 3 lines:


addnextpicture(5,55,70,90);
addnextpicture(5,5,35,45);
addnextpicture(45,5,35,45);



These dictate the size of the images place and their location so in the above example we have a 70mm by 90mm image placed at the location 5mm in and 55mm down then two 35mm by 45mm images placed at 5,5 and 45,5. When creating the list start with the largest pictures and work downwards as the quality will be reduced it you do not. This was produced for my use and this was not a problem for me but I decided to release it.

By changing this you can produce different sets of images and save these with different names such as "passport x 4"

The size of the new document is altered by the entry near the start:

ML_width = 100;
ML_height = 150;


This sets the paper size to 100mm by 150mm

I will be adding this to the Script Writer application for the next release but this is a totally stand alone script.

It should work with PSE versions 4+ and PS version CS2+.
 
Thanks, I can't wait for the editable version.

DSColourlabs have a school pack product which I guess is some sort of script like this.

It saves a lot of money and if you have a decent trimmer you can get lots of images out of a large format print size. I use their 18" x 12" school pack a lot and the quality is excellent.

May I just add that you may have to add an auto rotate feature to the script for best fit in the future to help maximise space on the paper.
 
May I just add that you may have to add an auto rotate feature to the script for best fit in the future to help maximise space on the paper.

When I thought of the idea originally I thought about the rotate option then forgot until after I posted it. I will be adding this later. I will also make an editable version for when it is released as part of Script Writer. As it stands at the moment that script creates a 6x4 inc 2 passport photos so if you are sending out a batch of pictures to be developed you could use it to get passport photos back which was my idea. I will add the rotate option and upload a new version shortly though.
 
Version 1.01 uploaded now.....

Addition of variable ML_flatten which if set to true flattens the image afterwards.

Addition of two new options for each image ie:

addnextpicture( 5, 55, 70, 90,true,false);

Where the 5th value (show as true in this example) rotates the image by 90 degrees to help fit them better onto the sheet.

Where the 6th value desaturates the image allowing one or more pictures to be black and white.

New1_01.jpg
 
Does anyone want an editable version of this script?
 
Hi,

just downloaded this and had a go, but it distorts the pictures and stretchs to change shape.

I am doing something wrong?

p.s. an editable version would be good.
 
This is only an early version, the actual shape should not change so there should be no distortion. It will be sorted before it actually joins the full script writer file :)
 
Back
Top