From 8d3ae231bb67eed4643fc7244e8678afe7eefd25 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 8 Dec 2019 16:17:45 +0000 Subject: [PATCH] Fix imgresize size expansion --- bin/imgresize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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