summaryrefslogtreecommitdiff
path: root/bin/fuze-img
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fuze-img')
-rwxr-xr-xbin/fuze-img10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/fuze-img b/bin/fuze-img
index da91b60..5e04e8c 100755
--- a/bin/fuze-img
+++ b/bin/fuze-img
@@ -1,8 +1,10 @@
-#!/bin/sh
+#!/usr/bin/env zsh
## Copyright © 2010 by Daniel Friesel <derf@derf.homelinux.org>
## License: WTFPL <http://sam.zoy.org/wtfpl>
-INPUT="${1}"
-OUTPUT="/tmp/fuze/$(basename ${1}).jpg"
+INPUT=${1}
+OUTPUT=/tmp/fuze/${INPUT:t:r}.jpg
-convert -resize 220x176 -quality 100 "${INPUT}" "${OUTPUT}"
+convert -resize 220x176 -quality 100 ${INPUT} ${OUTPUT}
+
+echo ${OUTPUT}