Chat on WhatsApp

Can the pipeline output WebP + AVIF instead of JPEG?

Yes. Pillow ships WebP support out of the box (10.x). AVIF requires the pillow-avif-plugin package, one extra pip install. The standard output we recommend is a 3-file set per image: .avif (q=50,, 55% size), .webp (q=80,, 50% size), .jpg (q=88, legacy fallback). Your storefront then emits a <picture> tag with all three sources; browsers pick the best they support. AVIF is ~25% smaller than WebP and ~60% smaller than JPEG at matched quality. Combined Core Web Vitals LCP win on a typical PDP: 400-700ms.

Was this helpful?