mirror of
https://github.com/draussenfunker/draussenfunker.github.io.git
synced 2025-12-31 08:29:17 +00:00
pipeline
This commit is contained in:
parent
2253624aab
commit
0efa73520b
2 changed files with 4 additions and 2 deletions
2
optimize.sh
Executable file
2
optimize.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue