diff --git a/bin/imgresize.sh b/bin/imgresize.sh index f1007dd..98d47a6 100644 --- a/bin/imgresize.sh +++ b/bin/imgresize.sh @@ -40,8 +40,8 @@ if [ -z "$3" ]; then fi size=$1 -w=${size#x*} -h=${size%*x} +w=${size%x*} +h=${size#*x} infile=$2 outfile=$3