Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
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 Prochaine révision Les deux révisions suivantes | ||
doc:media:imagemagick [19/09/2012 17:18] smolski |
doc:media:imagemagick [19/09/2012 21:46] smolski |
||
---|---|---|---|
Ligne 186: | Ligne 186: | ||
width=`identify -format %w [fichier_source]`; convert -background '[couleur_fond]' -font /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf etc... | width=`identify -format %w [fichier_source]`; convert -background '[couleur_fond]' -font /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf etc... | ||
+ | ==== Placement du texte ==== | ||
+ | Pour placer le titrage en bas et au centre d'une photo, par exemple : : | ||
+ | <code bash> | ||
+ | width=`identify -format %w 1.jpg`; convert -geometry +0+0 -background 'none' -fill black -font /home/mon_user/polices/ARIALNI.ttf -gravity center -size ${width}x200 caption:"Test de titrage 2012" +size 1.jpg +swap -gravity south -composite 001.jpg</code> | ||
+ | |||
+ | Toutefois, avec cette disposition, le titrage est pile au bord de l'image, pour le distancer un peu de ce bord, nous lui ajoutons 20 pixel au-dessous en utilisant l'option //-geometry// ainsi : | ||
+ | <code bash> | ||
+ | width=`identify -format %w 1.jpg`; convert -geometry +0+0 -background 'none' -fill black -font /home/mon_user/polices/ARIALNI.ttf -gravity center -size ${width}x200 caption:"Test de titrage 2012" +size 1.jpg +swap -gravity south -geometry +0+20 -composite 001.jpg</code> | ||
+ | |||
+ | Pour un texte en //Arial// de couleur blanche (white), à l'est (east), en bas (south), de 50 pixel de haut et à 20 pixel des bords droits et bas, la ligne est : | ||
+ | <code bash> | ||
+ | width=`identify -format %w source.jpg`; convert -geometry +0+0 -background 'none' -fill white -font /home/mon_user/polices/ARIALNI.ttf -gravity east -size ${width}x50 caption:"Photo Joël Smolski" +size source.jpg +swap -gravity south -geometry -20+20 -composite source_resultat.jpg</code> | ||
+ | À noter l'utilisation en **négatif** pour l'option //geometry// : ''-geometry -20+20'' | ||
+ | |||
+ | Source : | ||
+ | * http://www.imagemagick.org/Usage/annotating/#text_position | ||
===== Sous-exposition ===== | ===== Sous-exposition ===== |