summaryrefslogtreecommitdiff
path: root/compress.sh
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-10-23 19:03:43 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-10-23 19:03:43 +0200
commit464cce29a2e04e508a39cf9e68da4458d53873f8 (patch)
tree9d62f919b2f0a4572c50066772aec6c4b052c9a7 /compress.sh
parentd642e1328a70e9763379dd91f342dd499439c13d (diff)
downloadpragblog-464cce29a2e04e508a39cf9e68da4458d53873f8.tar.gz
pragblog-464cce29a2e04e508a39cf9e68da4458d53873f8.zip
load low-res images first
Diffstat (limited to 'compress.sh')
-rw-r--r--compress.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/compress.sh b/compress.sh
new file mode 100644
index 0000000..da5a3bb
--- /dev/null
+++ b/compress.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/bash
+RATIO=10
+cd static/images
+mkdir -p min/
+#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/_