Rev | Author | # | Line |
---|---|---|---|
3 | AristotlePagaltzis | 1 | [ImageMagick | http://www.imagemagick.org/] is a collection of tools to mozify images, mostly from the CommandLine. Capabilities include: |
1 | AlastairPorter | 2 | |
3 | * Resize, rotate, sharpen, color reduce, or add special effects to an image | ||
4 | * Create a montage of image thumbnails | ||
5 | * Create a transparent image suitable for use on the Web | ||
6 | * Turn a group of images into a GIF animation sequence | ||
7 | * Create a composite image by combining several separate images | ||
8 | * Draw shapes or text on an image | ||
9 | * Decorate an image with a border or frame | ||
10 | |||
11 | ---- | ||
2 | AlastairPorter | 12 | |
3 | AristotlePagaltzis | 13 | !!! Usage Examples |
14 | |||
15 | ! Resizing | ||
2 | AlastairPorter | 16 | |
17 | convert -sample width x height input.jpg output.jpg | ||
3 | AristotlePagaltzis | 18 | |
2 | AlastairPorter | 19 | The widths/heights can also take % values. It scales proportionally, so going 25%x25% on a non-square image will still make it come out non-square |
20 | |||
21 | ! Joining images together | ||
22 | |||
23 | convert files +append output.jpg | ||
3 | AristotlePagaltzis | 24 | |
25 | The +append appears to join them together left to right. -append possibly does something else. Haven't really looked into it. | ||
2 | AlastairPorter | 26 | |
27 | Situation: You have a bunch of digital photos that you want to string next to each other for a website banner | ||
28 | |||
29 | 1. Resize them all to 400px high (Just for ease of doing stuff later) | ||
30 | |||
31 | for img in *.jpg | ||
32 | do | ||
33 | convert -sample x400 "$img" "$img" | ||
34 | done | ||
35 | |||
36 | 2. Join them together | ||
3 | AristotlePagaltzis | 37 | |
2 | AlastairPorter | 38 | convert *.jpg +append output.jpg |
3 | AristotlePagaltzis | 39 | |
2 | AlastairPorter | 40 | This will of course join them in alphabetical order. You may want to do something about that. |
41 | |||
42 | 3. Final resize/add gradients in [TheGIMP] |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()