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

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 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>
Voir [[Ascii | Ascii]]
:- Voir [[Ascii | Ascii]]
== Convertir en SVG (un glyphe = un élément texte) ==
----
* 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]]
:- Voir [[SVG| SVG]]<br />


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