Why does f=auto give curl or a script WebP?
They send Accept: */*, and a wildcard does not count as asking for AVIF,
because clients that cannot show AVIF send it too. A script's fetch gets
AVIF only if you set the Accept header to name image/avif.
More: Image delivery, f=auto