Crop and resize an image with imagemagik
convert input.jpg -resize 140x140^ -gravity center -extent 140x140 output.jpg
Written by Andrew Walker
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Imagemagik
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/40215/question_mark_avatar.png)
mokagio
1.255K
Related Tags
#imagemagik
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#