mirror of
https://github.com/draussenfunker/draussenfunker.github.io.git
synced 2025-12-31 08:29:17 +00:00
fix optimize job
This commit is contained in:
parent
df6953f7da
commit
c585bcb13e
1 changed files with 2 additions and 1 deletions
|
|
@ -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}"
|
||||
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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue