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?