From c5fc39d5d1b501c3ee388e19fe9cad78abaf1bf8 Mon Sep 17 00:00:00 2001 From: borekon Date: Tue, 28 Jan 2025 10:53:54 +0100 Subject: [PATCH] Preserve metadata when converting to webp Added to $WEBP_ARGS the '-metadata string all' that copies the metadata from source to webp destination --- optimize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimize.sh b/optimize.sh index 8c55f54..5cd1f6e 100755 --- a/optimize.sh +++ b/optimize.sh @@ -16,7 +16,7 @@ CGREEN="${CSI}1;32m" FIND_ARGS="" PNG_ARGS="" JPG_ARGS="" -WEBP_ARGS="" +WEBP_ARGS="-metadata string all" IMG_PATH="$PWD" _help() {