From ff3fd5cc53704ef1c219f4a5c97d8e69536bf2ac Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 21 Jul 2023 23:14:48 +0800 Subject: Update --- bin/image/shellrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/image/shellrc b/bin/image/shellrc index 81e029b..a62dd70 100644 --- a/bin/image/shellrc +++ b/bin/image/shellrc @@ -2,13 +2,13 @@ # Concatenate image vertically image.vertical() { - if [ ! $# = 0 ]; then + if [ $# = 0 ]; then echo 'Usage: image.vertical input1.jpg input2.jpg' return 0 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