summaryrefslogtreecommitdiff
path: root/compress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compress.sh')
-rw-r--r--compress.sh6
1 files changed, 4 insertions, 2 deletions
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/_