1

So I've successfully used $ mogrify -resize 3000 to accomplish setting dimension on batches of images. What this yields me is exactly that- a group of images that have a 3000px width. The issue lies in vertical images that now have a vertical value larger than I would like.

My question is: Is there a solution that assesses the largest value (height or width) and then assigns the resize to that dimension.

Thanks in advance!

1

If you give both dimensions, it will resize until one dimension matches at least. So just use -resize 3000x3000. If you don't want to resize downwards you can add the suffix < so that only smaller images will grow to 3000, and larger images will be untouched (-resize '3000x3000<'). Similarly, suffix > to not resize upwards.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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