From f8c9d03ed01a4de450c5ffc5eca10493e324bf97 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 22 Aug 2023 20:23:16 +0800 Subject: Update --- bin/image/shellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/image/shellrc b/bin/image/shellrc index a62dd70..bfbb030 100644 --- a/bin/image/shellrc +++ b/bin/image/shellrc @@ -8,7 +8,7 @@ image.vertical() { fi ext=${1##*.} - convert "$@" +append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} + convert "$@" -append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} } # Concatenate image horizontally @@ -19,7 +19,7 @@ image.horizontal() { fi ext=${1##*.} - convert "$@" -append output.$ext + convert "$@" +append output.$ext } # Export image with data url format -- cgit v1.2.3-70-g09d2