diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-11-01 10:24:13 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-11-01 10:24:18 +0100 |
| commit | 76cf22fec8c1cff3f24c04fc0a9ea83b4dc444fe (patch) | |
| tree | 88383a07f89309f30ed090d2b6933e8573acba63 /compress.sh | |
| parent | 59b3591d22a6050bee421af3c58cab302f197ab5 (diff) | |
| download | pragblog-76cf22fec8c1cff3f24c04fc0a9ea83b4dc444fe.tar.gz pragblog-76cf22fec8c1cff3f24c04fc0a9ea83b4dc444fe.zip | |
also compress main images
Diffstat (limited to 'compress.sh')
| -rw-r--r-- | compress.sh | 6 |
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/_ |
