Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got tens of thousands of product images that I need to resize (constraining proportions) so that the largest dimension (height or width) is 500 pixels.

The images are in all kinds of sizes, some are perfect squares while most are either tall or wide. I can easily batch resize based on either height or width. The problem here is that if I resize a tall image based on width, it becomes very small etc.

Any ideas on the most practical way to standardize these images so that the largest dimension is 500 pixels?

share|improve this question
up vote 14 down vote accepted

In Photoshop, Files -> Scripts -> Image Processor.

Enter 500 for both Width and Height and check Resize to Fit. It will maintain the correct aspect ratio and resize the longest dimension to 500.

share|improve this answer
Thank you very much. That was it exactly it. – Stuart Aug 13 '09 at 14:53

This DPChallenge forum thread has a Javascript for CS4.
Resize Action in CS3 for portrait OR landscape

share|improve this answer

This is something Adobe Photoshop Lightroom is MUCH better at. Photoshop will work, as hyperslug explained, but if you plan on doing this a lot in the future you might want to give the free Lightroom trial a spin and see if it saves you some time.

share|improve this answer
Ahhhh crap. Didn't realize this was so old. I'm not so convinced the related posts on the right are helpful... – coreyward Nov 5 '09 at 21:26

If you want to make some custom batch process where you are dealing with multiple file types, Image Processor is not your best choice, it let you save in JPEG, PSD or TIFF only.

Here is the proper solution

File > Automate > Fit Image

It will just resize the image and you can continue making your batch process.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .