I have a large set of jpg images for which I want to create thumbnails. The images all have different sizes and resolutions, but I would like all thumbnails to have a standard size, e.g. 120x80px. However, I do not want to stretch the images. So I would like to do something of the following:
- Crop image to a 1.5 : 1 aspect ratio. Center the cropping area (i.e. cut off an equal amount left and right, or above and below
- Resize the image to 120 x 80 px.
Is there a linux command to do so? I looked into imagemick convert, but I can't figure out how to do the centered cropping. It seems that you have to manually specify the cropping area for each image?