X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fpictures%2Fshrink_pics.sh;h=941f79720f1942e13b7728c38457a2720804b3f6;hb=563c91d0e7636935106919ea4b1962a48c2b973b;hp=d4b442d5f00681ecf324bdab43ef371486f98038;hpb=9ebc8de9b7f5697cacf71832a8a1ba291062fb66;p=feisty_meow.git diff --git a/scripts/pictures/shrink_pics.sh b/scripts/pictures/shrink_pics.sh index d4b442d5..941f7972 100644 --- a/scripts/pictures/shrink_pics.sh +++ b/scripts/pictures/shrink_pics.sh @@ -11,7 +11,11 @@ fi percentage="$1"; shift -for i in $*; do - mogrify -resize $percentage% $i; +while true; do + picname="$1"; shift + if [ -z "$picname" ]; then + break + fi + mogrify -resize "$percentage%" "$picname"; done