Batch Processing of Images, Some Landscape, Some Portait?

SR
Posted By
steve_ryder
Dec 15, 2003
Views
342
Replies
1
Status
Closed
I have a set of images. Some are landscape, some are portrait. I want to run a batch function that will do the following:
1) Resize so that the largest dimension is, say, 520.
2) Set background to black
3) Increase canvas size so that both width and height are increased by 4 pixels
4) Drop shadow the image (which means first I copy and paste the image into a new layer with dimensions 35 pixels larger for both width and height on a white background
5) Save it, etc.

In setting up my action, I am unsure how to handle the unknowns created by the fact that a particular image might be landscape or portrait. In steps 1, 3, and 4, if I know that the image is landscape, then I can set width to 520 and make all other size adjustments based on this without problem (though even here, setting the canvas height is unclear – i.e. I would like to be able simply to set it at current height + 4, but instead I must specify the exact height). Is there any way to handle the action so that it takes the largest dimension and resizes to 520, then increases canvas size so that both width and height increase by 4, etc.?

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

L
larry
Dec 15, 2003
Create an action and include Automate>Fit Image and specify 520×520.

You can specify a relative canvas in Photoshop 7 or CS so you can add the same canvas to all images while running an action. Prior to Photoshop 7, you had to stop the action to set the canvas.

Larry Berman

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections