WebP
A modern web image format developed by Google, supporting lossy compression, lossless compression, transparency, and animation. Compared to JPEG and PNG, WebP produces smaller file sizes at equivalent image quality and has achieved broad support across mainstream browsers.
Timeline (last 90 days)
The WebP format supports an alpha channel, whereas the JPEG format does not support an alpha channel at all.
WebP and AVIF formats are generally smaller than JPEG/PNG at the same quality, but browser compatibility must be considered, and a fallback can be provided via the `<picture>` element with `srcset`.
For sites serving open-internet users with frequently updated images, AVIF with a WebP fallback is currently the safest option.
AVIF is based on AV1 intra-frame compression, and at equal subjective quality its file size can often be compressed to about sixty percent of WebP.
Lossless compression merely re-encodes the data and can be fully restored after decompression, making it suitable for text and vector graphics; lossy compression discards some information, usually reducing resolution or increasing the compression rate for images, with a marked reduction in size but a loss of detail.
WebP supports alpha transparency and animation, and can replace PNGs with transparency and animated GIFs.
At the same image quality, WebP is typically 25%–35% smaller than JPEG.
WebP supports both lossy and lossless compression.
With Safari adding support, WebP has achieved near-universal coverage across mainstream browsers.
At the same quality score, AVIF often saves 20%–50% in file size compared to WebP.
13 more timeline events
All Facts (20)
WebP由Google于2010年推出,有损压缩比JPEG小约25-34%,无损压缩比PNG小约26%
90%UnverifiedAVIF基于AV1视频编码,压缩效率比WebP再提升约20%,但编解码计算开销更大,目前仍处于普及过渡期
85%UnverifiedSafari 14于2020年正式支持WebP格式,使WebP实现全平台覆盖
85%UnverifiedAPNG在iOS生态中的兼容性比WebP更好,无需额外解码库
75%UnverifiedThe WebP format supports an alpha channel, whereas the JPEG format does not support an alpha channel at all.
50%UnverifiedWebP and AVIF formats are generally smaller than JPEG/PNG at the same quality, but browser compatibility must be considered, and a fallback can be provided via the `<picture>` element with `srcset`.
50%UnverifiedAVIF is based on AV1 intra-frame compression, and at equal subjective quality its file size can often be compressed to about sixty percent of WebP.
50%UnverifiedFor sites serving open-internet users with frequently updated images, AVIF with a WebP fallback is currently the safest option.
50%UnverifiedLossless compression merely re-encodes the data and can be fully restored after decompression, making it suitable for text and vector graphics; lossy compression discards some information, usually reducing resolution or increasing the compression rate for images, with a marked reduction in size but a loss of detail.
50%UnverifiedAt the same quality score, AVIF often saves 20%–50% in file size compared to WebP.
50%UnverifiedFor new projects, WebP can be used as the default directly; for pages requiring extreme performance, the picture tag can be used with AVIF as the first choice, WebP as the fallback, and JPEG as the final fallback.
50%UnverifiedWebP was marginalized early on due to lack of Safari support, slow adoption by Firefox, and lagging support in image editing tools.
50%UnverifiedThe encoding computation for AVIF far exceeds that of WebP, and generating a single AVIF image can sometimes require several times the CPU time of WebP.
50%UnverifiedAt the same image quality, WebP is typically 25%–35% smaller than JPEG.
50%UnverifiedWebP supports both lossy and lossless compression.
50%UnverifiedWebP supports alpha transparency and animation, and can replace PNGs with transparency and animated GIFs.
50%UnverifiedWith Safari adding support, WebP has achieved near-universal coverage across mainstream browsers.
50%UnverifiedBring Them to Life supports three output formats: WebP, Lottie, and PNG.
50%UnverifiedIn shot-scraper, a WebP format screenshot can be generated by specifying a .webp output filename, and the --quality option is used to set the image quality.
50%UnverifiedWhen shot-scraper is used without the --quality parameter, it generates a lossless WebP file; when the parameter is added, lossy compression is applied.
50%