fix bug optim img

This commit is contained in:
Yann Esposito (Yogsototh) 2021-11-02 18:31:33 +01:00
parent fe1b6a0776
commit 7236ef6b7a
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
1 changed files with 2 additions and 0 deletions

View File

@ -14,9 +14,11 @@ before=$(sizeof $src)
if [[ "${src:e}" == "gif" ]]; then
after=$(sizeof $dst)
dest=$dst
else
cwebp "$dst" -quiet -o "$dst.webp"
after=$(sizeof $dst.webp)
dest=$dst.webp
fi