From c585bcb13ecdf3c765ed592ff13763ff2fd586b3 Mon Sep 17 00:00:00 2001 From: Julius Zeidler Date: Thu, 5 Dec 2024 23:23:40 +0100 Subject: [PATCH] fix optimize job --- optimize.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/optimize.sh b/optimize.sh index 894a3382..811a9e66 100755 --- a/optimize.sh +++ b/optimize.sh @@ -1,3 +1,4 @@ #!/bin/bash echo "running image optimization" -npx sharp-cli resize 800 --withoutEnlargement true --optimise true --progressive true --withMetadata false --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output "{dir}/{base}" \ No newline at end of file +npx --yes sharp-cli resize 1200 --withoutEnlargement true --optimise true --progressive true --withMetadata false --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output "{dir}/{base}" +