From c3dd0dd535b93488f640134229af0a5030046bc1 Mon Sep 17 00:00:00 2001 From: borekon Date: Tue, 11 Jul 2023 13:45:02 +0000 Subject: [PATCH] Keep EXIF data in jpg cron --- crons/jpg-png-cron.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crons/jpg-png-cron.sh b/crons/jpg-png-cron.sh index 55632e2..f9982e5 100644 --- a/crons/jpg-png-cron.sh +++ b/crons/jpg-png-cron.sh @@ -10,7 +10,7 @@ sites="/var/www/yoursite.tld/images \ for site in $sites; do # optimize jpg images created in the last 24 hours - find "$site" -ctime 0 -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 jpegoptim --preserve --strip-all -m82 >> /var/log/jpg-png-cron.log 2>&1 + find "$site" -ctime 0 -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 jpegoptim --preserve --strip-none -m82 >> /var/log/jpg-png-cron.log 2>&1 # optimize png images created in the last 24 hours - find "$site" -ctime 0 -type f -iname '*.png' -print0 | xargs -0 optipng -o7 -strip all >> /var/log/jpg-png-cron.log 2>&1 + find "$site" -ctime 0 -type f -iname '*.png' -print0 | xargs -0 optipng -o7 >> /var/log/jpg-png-cron.log 2>&1 done \ No newline at end of file