From 76cf22fec8c1cff3f24c04fc0a9ea83b4dc444fe Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 1 Nov 2016 10:24:13 +0100 Subject: also compress main images --- compress.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'compress.sh') diff --git a/compress.sh b/compress.sh index da5a3bb..2646a56 100644 --- a/compress.sh +++ b/compress.sh @@ -1,6 +1,8 @@ #!/usr/bin/bash RATIO=10 cd static/images -mkdir -p min/ +mkdir -p min/ max/ #find -maxdepth 1 -name "*.jpg" | xargs -I_ convert -scale $((100/$RATIO))% -scale $((100*$RATIO))% -gaussian-blur x${RATIO} -interlace Plane -quality 70% _ min/_ -find -maxdepth 1 -name "*.jpg" | xargs -I_ convert -gaussian-blur x${RATIO} -interlace Plane -quality 70% -verbose _ min/_ +COMPRESSOPTS="-strip -interlace Plane -quality 75%" +find -maxdepth 1 -name "*.jpg" | xargs -I_ convert -gaussian-blur x${RATIO} $COMPRESSOPTS -verbose _ min/_ +find -maxdepth 1 -name "*.jpg" | xargs -I_ convert $COMPRESSOPTS -verbose _ max/_ -- cgit v1.3.1