Resize image by largest dimension in Photoshop
Solution 1
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.
Solution 2
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.
Solution 3
This DPChallenge forum thread has a Javascript for CS4.
Resize Action in CS3 for portrait OR landscape
Solution 4
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.
Related videos on Youtube
![Chris W. Rea](https://i.stack.imgur.com/6ABZv.jpg?s=256&g=1)
Chris W. Rea
Husband, dad, computer geek, independent software developer, Canadian. Likes: helping people, software and technology, personal finance, consumer protection, law, personal productivity, books, music. Within personal finance, specific interests include retirement planning, taxes, investing, self-employment. Dislikes: Conflict of interest. I founded the Personal Finance & Money Stack Exchange and was a moderator on the site during its formative years. Twitter: @cwrea LinkedIn: in/chriswrea GitHub: @cwrea
Updated on September 17, 2022Comments
-
Chris W. Rea almost 2 years
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?
-
coreyward over 14 yearsAhhhh crap. Didn't realize this was so old. I'm not so convinced the related posts on the right are helpful...
-
Macondo over 6 yearsHad to make a custom batch process, and this is indeed the best solution.