commit 9db77cfb69652fda59ca452b774f4ea39b5bf84b
parent 3560163759f0bc47c3e44ce15b40fcdabe93817a
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Thu, 28 Jun 2018 02:36:35 +0200
Fixed width of ANSI-art pixels. We should scale the image prior to conversion, to fix the aspect ratio.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ansi-screenshots/to_ansi.sh b/ansi-screenshots/to_ansi.sh
@@ -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