diff options
-rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,7 +272,8 @@ alias xc='xsel -ob | gcc -xc -' | |||
272 | 272 | ||
273 | # image | 273 | # image |
274 | image_vertical() { | 274 | image_vertical() { |
275 | convert "$@" -append output.png | 275 | suffix=${1##*.} |
276 | convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} | ||
276 | } | 277 | } |
277 | image_horizontal() { | 278 | image_horizontal() { |
278 | convert "$@" +append output.png | 279 | convert "$@" +append output.png |