From e282c26922b7037f181d5afba2c4ea0ee549c70d Mon Sep 17 00:00:00 2001 From: catroll Date: Thu, 20 Jun 2019 10:32:19 +0800 Subject: [PATCH 1/2] Change the displayed label to basename of original image file --- lsix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsix b/lsix index 0bcd866..f3e1719 100755 --- a/lsix +++ b/lsix @@ -226,7 +226,7 @@ main() { while [ $# -gt 0 -a $# -gt $goal ]; do len=${#onerow[@]} onerow[len++]="-label" - onerow[len++]=$(processlabel "$1") + onerow[len++]=$(processlabel "$(basename $1)") onerow[len++]="$1" shift done From 5743feaec2c75d5ce211b0412198032b441638e3 Mon Sep 17 00:00:00 2001 From: catroll Date: Thu, 20 Jun 2019 10:35:28 +0800 Subject: [PATCH 2/2] Change font family to Noto-Sans-CJK-SC-Regular --- lsix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lsix b/lsix index f3e1719..9863787 100755 --- a/lsix +++ b/lsix @@ -27,6 +27,7 @@ tileheight=$tilesize #fontfamily=Droid-Sans-Fallback # Great Asian font coverage #fontfamily=Dejavu-Sans # Wide coverage, comes with GNU/Linux #fontfamily=Mincho # Wide coverage, comes with MS Windows +fontfamily=Noto-Sans-CJK-SC-Regular # Default font size is based on width of each tile in montage. fontsize=$((tilewidth/10)) @@ -230,6 +231,7 @@ main() { onerow[len++]="$1" shift done + # echo montage "${onerow[@]}" $imoptions gif:- montage "${onerow[@]}" $imoptions gif:- \ | convert - -colors $numcolors sixel:- done