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 Answer 1

2

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.