Fixed width of ANSI-art pixels. We should scale the image prior to conversion, to fix the aspect ratio.

This commit is contained in:
Georges Dupéron 2018-06-28 02:36:35 +02:00
parent 3560163759
commit 9db77cfb69

View File

@ -28,7 +28,6 @@ done
| sed -n -r -e 's/^[0-9a-f]* (([0-9a-f]{2} ){8}) (([0-9a-f]{2} ){7}[0-9a-f]{2}).*$/\1\3/p' \
| tr '\n' ' ' \
| fold -w $((width*3)) \
| sed -r -e 's/([01])([0-7]) /[\1;3\2m██/g' \
| sed -e 's/ //g'
| sed -r -e 's/([01])([0-7]) /[\1;3\2m█/g'
echo