ImageMagick Crop & Resize images

/ Published in: Bash
Save to your folder(s)

simple command that resize and crop, if necessary, an image, centering the image.

Copy this code and paste it in your HTML
  1. /usr/bin/convert -verbose "/home/artaserse/img.png" -resize 190x150^ -gravity center -extent 190x150 "/home/artaserse/img_cropped.png"

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.