Automatic image post-processing in PS7.x

T
Posted By
TMRDD
Jun 26, 2003
Views
523
Replies
1
Status
Closed
Hi, as the subject implies… I’d like to try and do the following with a relatively large number of images (and, of course, repeat when necessary):

1. Load image/start script based on loaded image;

2. Based on image width and height, produce a new canvas size that is 20 px larger in width, per side, 20 px higher on the top side and 60 px longer on the bottom side (a weighted matting, so to speak);

3. Select the entire image;

4. Copy image;

5. Paste into a new image (i.e. File > New > Paste) that is itself 40 px larger again that the pasted image size;

6. Drop a shadow, with very specific parameters;

7. Flatten;

8. Save.

Steps 1, 3, 4, 6, 7 and 8 are easy; even I can do them. Steps 2 and 5 are the real problem since they would have to somehow automatically determine the image’s height and width and perform the necessary calculations to resolve the overall image size. And the originals, of course, are as varied in size as they are varied in subject matter (a.k.a. a lot). I cannot find such functionality in the default PS toolkit, unless, of course, I am missing something.

Your thoughts and suggestions would be appreciated.


With kindest regards, I remain your most loyal and humble servant… The Most Reverend Doktor Dot
For the benefit of all, please post to the newsgroup first.

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

M
Mouse
Jun 26, 2003
Actually, it’s not as complicated as you think.

Step 2:

Record yourself going into the Image menu > Canvas Size. In the Canvas size dialog box, turn on the "Relative" check box. Set the drop-down boxes of both Width and Height to pixels, and the anchoring position to the top centre. Type 40 into the Width box and 60 into the Height box. This adds 20 pixels to each side, and 60 to the bottom.
Go back into Image > Canvas size, and, making sure "Relative" is still turned on, set the anchoring position to bottom centre, set the Height drop-down box to pixels, and type 20 in the Height box. This’ll add 20 pixels to the top of the image.

Step 5:

Instead of copying and pasting, you could simply record yourself going Image
Duplicate. And then record yourself adding 40 pixels to the canvas size as
in Step 2.

Hope this helps.

"TMRDD" wrote in message
Hi, as the subject implies… I’d like to try and do the following with a relatively large number of images (and, of course, repeat when necessary):

1. Load image/start script based on loaded image;

2. Based on image width and height, produce a new canvas size that is 20 px larger in width, per side, 20 px higher on the top side and 60 px longer on the bottom side (a weighted matting, so to speak);

3. Select the entire image;

4. Copy image;

5. Paste into a new image (i.e. File > New > Paste) that is itself 40 px larger again that the pasted image size;

6. Drop a shadow, with very specific parameters;

7. Flatten;

8. Save.

Steps 1, 3, 4, 6, 7 and 8 are easy; even I can do them. Steps 2 and 5 are the real problem since they would have to somehow automatically determine the image’s height and width and perform the necessary calculations to resolve the overall image size. And the originals, of course, are as varied in size as they are varied in subject matter (a.k.a. a lot). I cannot find such functionality in the default PS toolkit, unless, of course, I am missing something.

Your thoughts and suggestions would be appreciated.


With kindest regards, I remain your most loyal and humble servant… The Most Reverend Doktor Dot
For the benefit of all, please post to the newsgroup first.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections