fix bug optim img
This commit is contained in:
parent
fe1b6a0776
commit
7236ef6b7a
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue