add flag for lossless webp in convert calls

This commit is contained in:
rhiannon morris 2023-09-06 20:31:37 +02:00
parent 11f5029412
commit 8cb6752168

View file

@ -140,7 +140,7 @@ endef
define resize
echo "[resize] "$@
mkdir -p "$(dir $@)"
convert -resize "$(1)x$(2)$(3)" $(4) "$^" "$@"
convert -resize "$(1)x$(2)$(3)" -define webp:lossless=true $(4) "$^" "$@"
endef
# no args