Difference between revisions of "ImageMagick/Cheatsheet"

From braindump
Jump to navigation Jump to search
Line 3: Line 3:
{| class="wikitable sortable collpsible"
{| class="wikitable sortable collpsible"
! Keyword !! Description !! Command
! Keyword !! Description !! Command
|-
| Auto Rotate || Auto rotate photos with the Exif orientation tag || <tt>mogrify -auto-orient <span class="input"><Image></span></tt>
|-
|-
| Fonts || List available fonts || <tt>convert -list font</tt>
| Fonts || List available fonts || <tt>convert -list font</tt>
Line 11: Line 9:
|-
|-
| Grayscale || Convert to grayscale || <tt>convert <span class="input"><InputImage></span> -type grayscale <span class="input"><OutputImage></span></tt>
| Grayscale || Convert to grayscale || <tt>convert <span class="input"><InputImage></span> -type grayscale <span class="input"><OutputImage></span></tt>
|-
| Rotate || Auto rotate photos with the Exif orientation tag || <tt>mogrify -auto-orient <span class="input"><Image></span></tt>
|-
| Rotate || Rotate Image clockwise by '''N''' degrees || <tt>convert <span class="input"><InputImage></span> -rotate <span class="input">+90</span> <span class="input"><OutputImage></span></tt>
|-
| Rotate || Rotate Image counter clockwise by '''N''' degrees || <tt>convert <span class="input"><InputImage></span> -rotate <span class="input">-90</span> <span class="input"><OutputImage></span></tt>
|-
|-
|}
|}

Revision as of 19:30, 4 July 2012

This is a collection of commands thought to be useful.

Keyword Description Command
Fonts List available fonts convert -list font
Formats List supported formats convert -list format
Grayscale Convert to grayscale convert <InputImage> -type grayscale <OutputImage>
Rotate Auto rotate photos with the Exif orientation tag mogrify -auto-orient <Image>
Rotate Rotate Image clockwise by N degrees convert <InputImage> -rotate +90 <OutputImage>
Rotate Rotate Image counter clockwise by N degrees convert <InputImage> -rotate -90 <OutputImage>