aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-17 23:55:34 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-17 23:55:34 -0400
commit73df60d33218ecd85442fb20fd0c9acaf7879ab0 (patch)
treef599de9303b990cfd0b5350e77463597248e8f8a /bootstrap
parent6fd8849424a59e54529bab53cc9e5bbc963ce123 (diff)
downloadthedroneely.com-73df60d33218ecd85442fb20fd0c9acaf7879ab0.tar.gz
thedroneely.com-73df60d33218ecd85442fb20fd0c9acaf7879ab0.tar.bz2
thedroneely.com-73df60d33218ecd85442fb20fd0c9acaf7879ab0.zip
bootstrap/helpers/update-thumbnails: Compress all jpg and png
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/helpers/update-thumbnails3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/helpers/update-thumbnails b/bootstrap/helpers/update-thumbnails
index 604bc0f..e3fa485 100755
--- a/bootstrap/helpers/update-thumbnails
+++ b/bootstrap/helpers/update-thumbnails
@@ -4,6 +4,7 @@ cd images || exit 1;
mogrify -path thumbnails -auto-orient -quiet -thumbnail x222 $(find . -maxdepth 1 -type f -mtime -1);
mogrify -format png -quiet thumbnails/*.jpg;
rm -f thumbnails/*.jpg
-find thumbnails -name '*.png' -mtime -1 -exec pngquant --quality 85 --ext .png --force {} \;
+find -name '*.png' -mtime -1 -exec pngquant --quality 85 --ext .png --force {} \;
+find -name '*.jpg' -mtime -1 -exec jpegoptim -m 85 {} +
touch .update-thumbnails;
echo Image Thumbnails in "'$(pwd)'" updated.;