AVIF(AV1 图像文件格式)
AVIF 是一种基于开源 AV1 视频编解码器的下一代图像格式。它提供卓越的压缩效率,在同等质量下通常比 JPEG 小 50%,比 WebP 小 20%。AVIF 支持 HDR、宽色域、透明度和动画。
MIME 类型
image/avif
类型
二进制
压缩
有损
优点
- + Best-in-class compression efficiency
- + Royalty-free and open-source codec
- + HDR and wide color gamut support
- + Growing browser support
缺点
- − Slower encoding than JPEG or WebP
- − Not yet universally supported
- − Limited tooling compared to established formats
何时使用 .AVIF
建议将 AVIF 作为网站的渐进增强方案,向支持的浏览器提供 AVIF,同时为其他浏览器回退到 WebP 或 JPEG。
技术细节
AVIF 采用 AV1 帧内编码,使用高级变换和预测模式。它支持 8、10 和 12 位色深、4:4:4 色度采样、HDR10 以及 PQ/HLG 传输函数。
历史
AVIF 由开放媒体联盟于 2019 年 2 月最终确定。Chrome 于 2020 年添加支持,Safari 于 2023 年跟进,完成了主流浏览器的全面覆盖。
从 .AVIF 转换
转换为 .AVIF
相关格式
相关术语
Learn More
How to Compress Images for the Web
Learn how to reduce image file sizes for faster web page loading without visible quality loss. This guide covers lossy …
Image Format Guide: JPEG vs PNG vs WebP vs AVIF
Choosing the right image format affects file size, quality, and browser compatibility. This comparison covers the strengths of JPEG, PNG, …
How to Resize Images for Web Without Losing Quality
Serving properly sized images is critical for web performance. Images that are too large waste bandwidth and slow page loads, …
Batch Image Conversion: Best Practices for Bulk Processing
Converting hundreds of images one by one is tedious and error-prone. Learn how to set up efficient batch conversion workflows …
How to Remove Image Backgrounds Effectively
Removing backgrounds from product photos, portraits, and logos is a frequent task in design and e-commerce. This guide covers techniques …
Troubleshooting Image Quality Loss During Conversion
Converting between image formats sometimes produces unexpected quality degradation. This guide explains why quality loss happens and how to minimize …