Resizing image with imagemagick

Posted by Richard Lucas on Aug 11 2015

Quick one-liner

Using imagemagick to resize an image, keep it’s proportion (i.e. 4 x 3 ), and place it in the middle with a white background:

1
convert input.png -resize 1280x800 -background white -gravity center -extent 1280x800 output.png