Context
Context. Two routes to WebP, and they combine. The site setting Generate picture tag turns every image rendered through getHtml(), and every image in rich text, into a <picture> with a WebP source first, a source in the original format, and an <img> fallback; the browser picks the first it can show. Per image, toOptimizedFormat() converts to WebP in the template. WebP always goes through the Cloudinary service, and if no service can convert when the file is fetched, the original is delivered under the WebP URL, which browsers accept.