diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-03 21:18:31 +0200 |
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-03 21:18:31 +0200 |
| commit | cd31751737247425e83fdd176ef853473c608796 (patch) | |
| tree | 797dff387f29046ff09243e4046ac4b3474d1f00 /bin/fuze-img | |
| parent | a6c7659651aae7379c91ba72e10cc3be8681286b (diff) | |
Use zsh, a few fixes
Diffstat (limited to 'bin/fuze-img')
| -rwxr-xr-x | bin/fuze-img | 10 |
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} |
