Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| info:imagemagick [2012/11/24 06:11] – radeff | info:imagemagick [2020/03/22 16:25] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. | + | ====== ImageMagick ====== |
| + | {{tag> | ||
| + | //kw: imagik, imagick// | ||
| + | |||
| + | voir aussi: imgp | ||
| + | |||
| + | software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. | ||
| http:// | http:// | ||
| Ligne 33: | Ligne 39: | ||
| quelques exemples tirés de http:// | quelques exemples tirés de http:// | ||
| - | < | + | |
| Ajouter un bandeau de texte bleu sur fond blanc au dessous d' | Ajouter un bandeau de texte bleu sur fond blanc au dessous d' | ||
| - | convert image.jpg -background white -font Helvetica -fill blue | + | < |
| - | -pointsize 72 label:" | + | |
| - | image_avec_texte.jpg | + | |
| Ajouter un bandeau de texte bleu sur fond blanc au dessus d' | Ajouter un bandeau de texte bleu sur fond blanc au dessus d' | ||
| - | convert image.jpg -background white -font Helvetica -fill blue | + | < |
| - | -pointsize 72 label:" | + | |
| - | image_avec_texte.jpg | + | |
| Ajouter du texte blanc surligner en noir sur image.txt: | Ajouter du texte blanc surligner en noir sur image.txt: | ||
| - | convert image.jpg -font Helvetica -pointsize 48 -gravity south -stroke | ||
| - | '# | ||
| - | -fill white -annotate 0 " | ||
| + | < | ||
| + | |||
| + | < | ||
| -pointsize permet de gérer la taille de l' | -pointsize permet de gérer la taille de l' | ||
| -gravity permet de gérer l' | -gravity permet de gérer l' | ||
| Ligne 102: | Ligne 104: | ||
| done | done | ||
| </ | </ | ||
| + | |||
| + | $ convert rose.jpg -resize 50% rose.png | ||
| + | |||
| + | ====== resize before ftp ====== | ||
| + | FIXME (on work) | ||
| + | |||
| + | http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | mogrify -resize 800 $i | ||
| + | |||
| + | < | ||
| + | # | ||
| + | #/ | ||
| + | find . -size +300k | while read i | ||
| + | do | ||
| + | echo " | ||
| + | mogrify -resize 800 $i | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | Most command-line shells allow you to setup aliases and functions for complicated commands. If you use a bash shell, you can add a function to your .bash_aliases (or .bashrc) file that acts as an alias for my recommended command: | ||
| + | |||
| + | smartresize() { | ||
| + | | ||
| + | } | ||
| + | |||
| + | Then, you can call it like this: | ||
| + | |||
| + | smartresize inputfile.png 300 outputdir/ | ||
| + | |||
| + | |||
| + | |||
| + | |||