Preserving aspect ratio in a batch with Photoshop
Preserving aspect ratio in a batch with Photoshop
Question
I have a large list of images (all different sizes and aspect ratios) that need to be edited. I need to perform the following operations:
- Crop image to a specific aspect ratio
- Resize that image to specific dimensions
- Save/Compress
I tried to create an action, and perform the previous steps. The problem is, even though in the crop tool I would enter my desired aspect ratio, the action wouldn't save that ratio - it would save the actual dimensions it was cropped to. This obviously led to many odd photos being created.
How does one create an action that will preserve aspect ratio across the batch, regardless of image size?
Popular Answer
I've always used: File / Scripts / Image Processor
Set your intended size and file type.
Under #4 Preferences
, Run an Action
that changes the Canvas size
to trim your image.
If you want you can add a Save As Web
event to your Action to optimize it.
See crystalpulse's answer for compression.
I generally change the file (#3) to a square, ie 300px by 300px
, then trim as needed with the Canvas Size
Action to trim to say 150px by 300px
.
If your Aspect Ratios are vastly different, you might want to make separate batches to process, one for Vertical images, one for Horizontal images using different Actions to change the Canvas Size.