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.
Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:lagrenouille:tutos:watermarking [31/07/2016 12:54] lagrenouille créée |
utilisateurs:lagrenouille:tutos:watermarking [31/07/2016 16:05] lagrenouille [Utilisation] |
||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
===== Utilisation ===== | ===== Utilisation ===== | ||
- | |||
==== **LOGOS INCRUSTÉ DANS L’IMAGE** ==== | ==== **LOGOS INCRUSTÉ DANS L’IMAGE** ==== | ||
+ | |||
+ | |||
+ | L’image "fem.jpg" ci dessous, sera notre élément de départ | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R1c39f23475541d3ccf6c04adc4da5e33.png}} | ||
+ | |||
+ | Maintenant je vais créer le logo et l'incruster dans l'image | ||
+ | |||
+ | convert cadrebois.jpg -font courier -pointsize 20 \ -draw "gravity south \ fill black text 0,12 'archives-cras' \ fill white text 1,11 'archives-cras' " | ||
+ | \ fem-avec- antivol02.jpg | ||
+ | |||
+ | |||
+ | {{https://debian-facile.org/images/file-R2676b2bf36279f993f774124280e4198.png}} | ||
+ | ** | ||
+ | CRÉER UN LOGO TEXTE (ICI ARCHIVES-CRAS)** | ||
+ | |||
+ | |||
+ | convert -size 300x50 xc:grey80 -font courier -pointsize 20 -gravity center -draw "fill grey50 text 0,0 'archives-cras''' archives_cras1.png | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R779f153e97508def4a2f13ade1617b5b.png}} | ||
+ | |||
+ | |||
+ | |||
+ | on joue sur la couleur grise avec 80 pour le fond et 20 pour les lettres, à chacun de voir et de changer | ||
+ | |||
+ | |||
+ | convert -size 300x50 xc:grey30 -font Arial -pointsize 20 -gravity center \ -draw "fill grey70 text 0,0 'reproduction-interdite'" \ stamp_fgnd.png convert | ||
+ | -size 300x50 xc:black -font Arial -pointsize 20 -gravity center \ -draw "fill white text 1,1 'archives-cras' \ text 0,0 'archives-cras' \ | ||
+ | -fill black text -1,-1 'archives-cras'" \ +matte stamp_mask.png composite -compose CopyOpacity stamp_mask.png stamp_fgnd.png stamp.png mogrify -trim +repage stamp.png | ||
+ | |||
+ | Cette commande vient de me créer les trois logos suivants | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R779f153e97508def4a2f13ade1617b5b.png}} | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R5b71f7a03401219bfa7b3eef0528e517.png}} | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R737bebd4f081e39b401d72aa5396ca10.png}} | ||
+ | |||
+ | |||
+ | Maintenant, nous avons une police de filigrane, nous pouvons appliquer à notre image | ||
+ | |||
+ | composite -gravity south -geometry +0+10 stamp.png fem.jpg \ logo-texte-vers-le-bas.jpg | ||
+ | | ||
+ | | ||
+ | {{https://debian-facile.org/images/file-R9aab252974f7d99b22d5ffc8ba1a2f73.png}} | ||
+ | |||
+ | |||
+ | Cette fois çi nous allons mettre plusieurs petit textes, ici « copyright » sur l’image | ||
+ | | ||
+ | convert -size 140x80 xc:none -fill grey \ -gravity NorthWest -draw 'text 10,10 'Copyright'' \ -gravity SouthEast -draw 'text 5,15 'Copyright'' | ||
+ | \ miff:- |\ composite -tile - fem.jpg wmark_text_tiled.jpg | ||
+ | |||
+ | {{https://debian-facile.org/images/file-Rb4d4a255f95b8a51b1dc4aca21bb9545.png}} | ||
+ | |||
+ | |||
+ | |||
+ | **METTONS MAINTENANT UN TATOUAGE COMME LOGO** | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R1a782061fd4c22b038bd953d0ed64056.png}} | ||
+ | |||
+ | composite -watermark 30% -gravity south \ fle.png fem.jpg wmark_watermark.jpg | ||
+ | | ||
+ | {{https://debian-facile.org/images/file-R4d614c87758abf4b6ed55c5bebe325c0.png}} | ||
+ | |||
+ | si ça se voit trop alors il faut légèrement dissoudre l’affaire, le logo sera plus discret | ||
+ | |||
+ | cette commande devrait le faire | ||
+ | |||
+ | composite -dissolve 25% -gravity south \ fle.png fem.jpg wmark_dissolve.jpg | ||
+ | |||
+ | |||
+ | Et si vous voulez des logos partout sur votre image | ||
+ | |||
+ | composite -dissolve 15 -tile \ fle.png fem.jpg wmark_tiled2.jpg | ||
+ | | ||
+ | {{https://debian-facile.org/images/file-Rb0c9d6a60c7549702bb7073d3b1b03bf.png}} | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |