diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-11 08:46:18 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-11 08:46:18 -0300 |
commit | ba598b1c2fdb720c65acc4e6e6a9b1042a085919 (patch) | |
tree | 7439fd717220d3bd7afea69e419285813345e2af /pre-commit | |
parent | e23c953f3a7389b024b38471825f05a63a4b421c (diff) |
Now using webp with -lossless
Diffstat (limited to 'pre-commit')
-rwxr-xr-x | pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,5 +2,5 @@ # set -eo pipefail -find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp $1 -o "${1%.png}.webp"' _ {} \; +find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \; find . -type f -not -path '*/.git/*' \( ! -iname ".gitignore" ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \; |