fx123
fx123

Reputation: 37

Resize every image to the same size

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)?

Upvotes: 2

Views: 382

Answers (1)

fmw42
fmw42

Reputation: 53089

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

Upvotes: 3

Related Questions