I try to compress my ~1MB pngs to get a smaller image.
When I compress my images to jpeg with:
for i in card*.png ; do convert -resize 445x625 -background white -flatten "$i" ../medium/"${i%.*}.jpg" ; done
they end up about 100kb
So I tried
for i in card*.png ; do echo $i; convert -resize 445x625 "$i" ../medium/"${i%.*}.avif" ; done
which results in avif images ~400kb, I guess because they are losslessly compressed.
How do I create lossy compressed avif images? And what would be a useful quality level to get images with the text still clearly readeable?
(I use ImageMagick 6.9.10-23 on Ubuntu)