Optimizing images for the web with WebP
I recently converted all images on this site from PNG and JPEG to WebP. The results were better than I expected, so here are some quick notes. Why WebP WebP produces smaller files than PNG and JPEG at comparable visual quality. Browser support is effectively universal now — every modern browser has supported it for years. There is no reason to keep serving older formats for new content. Converting with cwebp The cwebp command-line tool (part of the libwebp package) handles conversion: ...