Quick one-linerUsing imagemagick to resize an image, keep it’s proportion (i.e. 4 x 3 ), and place it in the middle with a white background: 1convert input.png -resize 1280x800 -background white -gravity center -extent 1280x800 output.png ← Previous Post Next Post →