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 [2011/12/16 09:37] – [Pour fabriquer rapidement des boutons] 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 28: | Ligne 34: | ||
| http:// | http:// | ||
| + | |||
| + | ===== Ajouter du texte à des images ===== | ||
| + | Vous avez un lot d' | ||
| + | |||
| + | 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 dessus d' | ||
| + | |||
| + | < | ||
| + | |||
| + | Ajouter du texte blanc surligner en noir sur image.txt: | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | -pointsize permet de gérer la taille de l' | ||
| + | -gravity permet de gérer l' | ||
| + | north, east, west ....) | ||
| + | -font permet de sélectionner la police utilisée ... utiliser la commande | ||
| + | " | ||
| + | par convert | ||
| + | </ | ||
| + | |||
| + | Après un peu de bash et le tour est joué (voir sur la source http:// | ||
| ===== Pour fabriquer rapidement des boutons ===== | ===== Pour fabriquer rapidement des boutons ===== | ||
| Ligne 70: | 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/ | ||
| + | |||
| + | |||
| + | |||
| + | |||