I used ImageMagick [0] just now to create a couple test images.
magick testimage.png testimage.avif
magick testimage.png -quality 60 testimage60.avif
[0] https://imagemagick.org/script/magick.php