5 A quick reference for common [Imagemagick](https://www.imagemagick.org) commands and switches.
10 | Option | Description |
11 | ------------------- | ------------------------------- |
12 | `-resize 100x40` | Resize to a dimension |
13 | `-crop 40x30+10+10` | (width)x(height)+(x)+y |
14 | `-crop 40x30-10-10` | (width)x(height)+(x)+y |
15 | `-flip` | Vertical |
16 | `-flop` | Horizontal |
17 | `-transpose` | Flip vertical + rotate 90deg |
18 | `-transverse` | Flip horizontal + rotate 270deg |
19 | `-trim` | Trim image edges |
20 | `-rotate 90` | Rotate 90 degrees |
25 convert input.jpg -resize 80x80^ -gravity center -extent 80x80 icon.png
28 ### Convert all images to another format
31 mogrify -format jpg -quality 85 *.png
37 convert *.jpg hello.pdf
42 - <http://www.noah.org/wiki/ImageMagick>
43 - <https://www.imagemagick.org/>