From 9db77cfb69652fda59ca452b774f4ea39b5bf84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 28 Jun 2018 02:36:35 +0200 Subject: [PATCH] Fixed width of ANSI-art pixels. We should scale the image prior to conversion, to fix the aspect ratio. --- ansi-screenshots/to_ansi.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansi-screenshots/to_ansi.sh b/ansi-screenshots/to_ansi.sh index 39e6401..9bfbfe9 100755 --- 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