Aller au contenu

« Image vers ASCII vers SVG » : différence entre les versions

De Marmits Wiki
Page créée avec «  1 - Générer de l'ASCII (avec potentiels codes ANSI) + Supprimer les séquences ANSI (couleurs/position) <syntaxhighlight lang="bash"> img2txt -W 150 -x 1 -y 2 -d fstein -f ansi picture.png | sed -r 's/\x1B\[[0-9;]*[mK]//g' > picture.txt` </syntaxhighlight> 2 - Convertir en SVG (un glyphe = un élément texte) <syntaxhighlight lang="bash"> aasvg --spaces=0 --stretch --fill < picture.txt > picture.svg` </syntaxhighlight> Catégorie:Tools Catégorie:Dev... »
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :


1 - Générer de l'ASCII (avec potentiels codes ANSI) + Supprimer les séquences ANSI (couleurs/position)
== Générer de l'ASCII (avec potentiels codes ANSI) + Supprimer les séquences ANSI (couleurs/position) ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
img2txt -W 150 -x 1 -y 2 -d fstein -f ansi picture.png | sed -r 's/\x1B\[[0-9;]*[mK]//g' > picture.txt`
img2txt -W 150 -x 1 -y 2 -d fstein -f ansi picture.png | sed -r 's/\x1B\[[0-9;]*[mK]//g' > picture.txt`
</syntaxhighlight>
</syntaxhighlight>
2 - Convertir en SVG (un glyphe = un élément texte)
Voir [[Ascii | Ascii]]
== Convertir en SVG (un glyphe = un élément texte) ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
aasvg --spaces=0 --stretch --fill < picture.txt > picture.svg`
aasvg --spaces=0 --stretch --fill < picture.txt > picture.svg`
</syntaxhighlight>
</syntaxhighlight>
 
Voir [[SVG| SVG]]


[[Catégorie:Tools]]
[[Catégorie:Tools]]
[[Catégorie:Dev]]
[[Catégorie:Dev]]
[[Catégorie:Geek]]
[[Catégorie:Geek]]

Version du 20 octobre 2025 à 15:40

Générer de l'ASCII (avec potentiels codes ANSI) + Supprimer les séquences ANSI (couleurs/position)

img2txt -W 150 -x 1 -y 2 -d fstein -f ansi picture.png | sed -r 's/\x1B\[[0-9;]*[mK]//g' > picture.txt`

Voir Ascii

Convertir en SVG (un glyphe = un élément texte)

aasvg --spaces=0 --stretch --fill < picture.txt > picture.svg`

Voir SVG