I have a very big collection of very big images, and I want to create a thumbnail gallery in which images are resized to a maximum-minimum-width (you will understand) of 180px.
For example: If the image is 2400x1800, it will be resized to 240x180 Else if it is 1600x1800, it will be resized to 180x202
Is it clear? The smallest size of the picture should be exactly 180, no matter if it is the width or height.
How is this possible with the command line? I know how to resize each file to a certain size, but not with those different sizes.