Resize every image to the same size

Viewed 74

I need to resize any given image to 1200x700px without distorting it, no matter if the image is smaller or bigger. its okay when something gets cropped.

is it possible to do this in a simple way or do i need a lot of if/else to get there?

what's the best approach using imagemagick (command-line)?

1 Answers
convert image.suffix -resize "1200x700^" -gravity center -extent 1200x700 result.suffix
Related