draussenfunker.github.io/optimize.sh
julius zeidler 0efa73520b pipeline
2023-01-13 00:53:41 +01:00

2 lines
No EOL
278 B
Bash
Executable file

#!/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}"