Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

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:

  1. Crop image to a specific aspect ratio
  2. Resize that image to specific dimensions
  3. 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?

share|improve this question
1  
Instead of cropping, you can change the canvas size of your image based on percentage. Image > Canvas Size then change the pixels drop down to percentage. –  ckpepper02 Aug 23 '13 at 16:04
    
@ckpepper02 - Thanks, but this won't work due to the fact that each image is a different size and aspect ratio –  Katamaritaco Aug 23 '13 at 16:16

2 Answers 2

File > Automate > Fit Image

Use this to make the image scale to say 1600px x 1600px or whatever your requirements are.

So your action will something like... Crop Tool > Set aspect ratio > Crop > Fit Image. Then set that up in the Batch function, add the Save To.. Folder and Close.

As for the compress part. This might need some help outside of Photoshop.

You want an application called 'Hazel', with this you can specify things like: If there is an Uncompressed folder in 'x' folder, then compress it OR If there are files in 'x' folder, compress them and move the compressed file to 'x'.

share|improve this answer

I've always used: File / Scripts / Image Processor

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.