m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/imagemagick.md
blob: 57261e9009566afd276b5afd6588459bcac7d151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Manipulating images!

## Simple format conversion

    convert in.jpg out.png

## Resize

Fits image within given geometry, keeping the aspect ratio!

    convert in.jpg -resize 720x720 out.jpg

Force resize to be exactly the given geometry with `!`

    convert in.jpg --resize 720x720\! out.jpg

## Options with enum arguments

List possible option values

    convert -list <option>
    # e.g.
    convert -list dither