Skip to main content

NGINX Automatic Image Conversion: WebP and AVIF


by Danila Vershinin, April 5, 2026

Learn how to automatically convert and serve WebP and AVIF images in NGINX using the ngx_immerse filter module. This module transparently intercepts image responses from any source – static files, proxy_pass, or FastCGI – and converts them to modern formats based on browser support. No URL rewriting, no separate service, no application changes needed.

Read More...

How Not to Write an NGINX Module: A WebP Case Study


by Danila Vershinin,

A deep technical analysis of ngx_webp – an NGINX module that converts images to WebP on-the-fly. It works, but violates nearly every principle of NGINX module development. We dissect what went wrong and show how to do it right.

Read More...

How to Serve WebP Images Automatically with NGINX: Complete 2026 Guide


by Danila Vershinin, January 19, 2026

Learn how to automatically serve WebP images with NGINX to supporting browsers while falling back to JPEG/PNG for others. Covers content negotiation, the Vary header, on-the-fly conversion with nginx-module-webp, and the PageSpeed module.

Read More...