informatique:imagemagick
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:imagemagick [2024/12/04 06:00] – alexis | informatique:imagemagick [2024/12/04 06:09] (Version actuelle) – ↷ Liens modifiés en raison d'un déplacement. alexis | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== ImageMagick ====== | ====== ImageMagick ====== | ||
| <catlist informatique: | <catlist informatique: | ||
| - | |||
| - | ===== Modification d' | ||
| Sauf indication contraire, pour toutes les manipulations, | Sauf indication contraire, pour toutes les manipulations, | ||
| - | {{:multimedia: | + | {{informatique:imagemagick: |
| - | {{:multimedia: | + | {{informatique:imagemagick: |
| - | ==== Supprimer le canal alpha ==== | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | mogrify -background white -alpha remove *.png | ||
| - | </ | ||
| - | </ | ||
| - | ==== Dessiner sur une image ==== | + | ===== Pour aller plus loin ===== |
| - | Pour mettre à jour la page [[jeux: | + | |
| - | + | ||
| - | Je me suis servi des documents suivants pour produire les images ci-dessous : | + | |
| - | * [[https:// | + | |
| - | * [[https:// | + | |
| - | * [[https:// | + | |
| - | * [[http:// | + | |
| - | * [[https:// | + | |
| - | + | ||
| - | <WRAP group> | + | |
| - | <WRAP half column> | + | |
| - | {{ jeux: | + | |
| - | {{ jeux: | + | |
| - | <WRAP prewrap> | + | |
| - | <code bash> | + | |
| - | convert chicago.original.jpg -pointsize 20 -draw 'fill black rectangle 258,73 282,102 fill white rectangle 260,75 280,100 fill black text 265,95 " | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <WRAP half column> | + | |
| - | {{ jeux: | + | |
| - | {{ jeux: | + | |
| - | <WRAP prewrap> | + | |
| - | <code bash> | + | |
| - | convert havana.original.jpg -pointsize 20 -draw 'fill black rectangle 90,400 114,429 fill white rectangle 92,402 112,427 fill black text 97,422 " | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <WRAP group> | + | |
| - | <WRAP half column> | + | |
| - | {{ jeux: | + | |
| - | {{ jeux: | + | |
| - | <WRAP prewrap> | + | |
| - | <code bash> | + | |
| - | convert vegas.original.jpg -pointsize 20 -draw 'fill black rectangle 446,1163 470,1192 fill white rectangle 448,1165 468,1190 fill black text 453,1185 " | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | <WRAP half column> | + | |
| - | {{ jeux: | + | |
| - | {{ jeux: | + | |
| - | <WRAP prewrap> | + | |
| - | <code bash> | + | |
| - | convert rio.original.jpg -pointsize 20 -draw 'fill black rectangle 353,94 377,123 fill white rectangle 355,96 375,121 fill black text 360,116 " | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Pour aller plus loin ==== | + | |
| * [[http:// | * [[http:// | ||
| - | ===== Autre ===== | ||
| - | |||
| - | ==== Afficher les caractéristiques d'une image ==== | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | identify climbing.jpg | ||
| - | </ | ||
| - | </ | ||
| - | Résultat : | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | climbing.jpg JPEG 300x200 300x200+0+0 8-bit DirectClass 18.8KB 0.000u 0:00.000 | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | ==== Écrire dans une image ==== | ||
| - | **Le résultat d'une commande** | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | convert -border 15x15 -bordercolor "# | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | **Le contenu d'un fichier** | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | convert -fill '# | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | **Du texte positionné** | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | convert -size 200x30 xc: | ||
| - | </ | ||
| - | </ | ||
| - | ==== Générer un fichier PDF vide ==== | ||
| - | |||
| - | <WRAP prewrap> | ||
| - | <code bash> | ||
| - | convert xc:none -page A4 a.pdf | ||
| - | </ | ||
| - | </ | ||
| - | Astuce trouvée [[http:// | ||
| - | <WRAP important> | ||
| - | Si la commande retourne l' | ||
| - | Pour cela, il faut modifier le fichier ''/ | ||
| - | <WRAP prewrap> | ||
| - | <code xml> | ||
| - | <!-- Avant : politique de sécurité appliquée aux fichiers PDF, aucune action autorisée --> | ||
| - | <policy domain=" | ||
| - | |||
| - | <!-- Après : politique de sécurité appliquée aux fichiers PDF, lecture et écriture autorisée --> | ||
| - | <policy domain=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | ==== Supprimer les données EXIF d'une image ==== | ||
| - | <WRAP prewrap> | ||
| - | < | ||
| - | mogrify -strip climbing.jpg | ||
| - | </ | ||
| - | </ | ||
informatique/imagemagick.1733320801.txt.gz · Dernière modification : de alexis
