convert cheatsheet

A few useful commands for the imagemagick cli


Convert filetype

convert in.png out.jpg

Resize

convert in.png -resize 100x100 out.png  # resize to exact size
convert in.png -resize 100x out.png     # resize proportionally
convert in.png -resize x100 out.png     # same thing

Dim an image

convert in.png -fill black -colorize 50% out.png

Blur image

convert in.png -blur 0x8 out.png