Does the file name at the end of a variant address set the output format? No. The format comes from f. .../hero.jpg with f=webp is a WebP. More: Image delivery, What a variant looks like