# 高效图像文件格式

**高效图像文件格式**（High Efficiency Image File Format，HEIF）是一种容器格式，标准化为 ISO/IEC 23008-12，用于存储单幅图像、图像集合和图像序列及其关联的元数据。<sup>[1](https://www.iso.org/standard/89035.html)</sup> 它最为人熟知的是其 HEIC 变体——自 2017 年 iOS 11 起 iPhone 上的首选照片拍摄格式——以及 AVIF，后者复用同一容器并采用 AV1 编解码器。<sup>[2](https://arxiv.org/abs/2006.08060)</sup><sup> • </sup><sup>[3](https://narqo.com/formats/heif)</sup>

| 关键事实 | 详情 |
|---|---|
| 标准 | ISO/IEC 23008-12，图像文件格式；第 3 版于 2025 年 7 月发布，共 145 页，由 ISO/IEC JTC 1/SC 29 制定<sup>[1](https://www.iso.org/standard/89035.html)</sup> |
| 基础 | 构建于 ISO 基础媒体文件格式（ISO/IEC 14496-12）之上，与 MP4 共用同一工具箱<sup>[1](https://www.iso.org/standard/89035.html)</sup><sup> • </sup><sup>[4](https://docs.ogc.org/per/25-047.html)</sup> |
| 涵盖的编解码器 | HEVC、AVC、JPEG、VVC 和 EVC 图像及图像序列的品牌；视频存储本身由 ISO/IEC 14496-15 处理<sup>[1](https://www.iso.org/standard/89035.html)</sup> |
| 文件扩展名 | .heic 和 .heif<sup>[5](https://learn.microsoft.com/sv-se/previous-versions/windows/desktop/legacy/mt846532%28v%3Dvs.85%29)</sup> |
| 压缩 | 主观测试中，HEVC 帧内编码相对 JPEG 2000 4:4:4 平均节省 16% 码率，相对 JPEG 最高节省 43%<sup>[6](https://www.researchgate.net/publication/261445860_Subjective_evaluation_of_HEVC_intra_coding_for_still_image_compression)</sup> |
| 平台支持 | 内置于 iOS 11 及更高版本和 macOS High Sierra 10.13 及更高版本；Android 从 9.0 起支持解码，从 Android 10 起支持编码，是否支持由设备决定<sup>[7](https://support.apple.com/en-ie/116944)</sup><sup> • </sup><sup>[8](https://developer.android.com/media/platform/supported-formats)</sup> |
| 浏览器支持 | 截至当前 caniuse 数据，仅 Safari 17.0 及更高版本可渲染 HEIC；Chrome、Edge 和 Firefox 不支持<sup>[9](https://caniuse.com/heif)</sup> |

## 标准与版本

该格式在 [ISO/IEC JTC 1](https://www.edgepedia.org/zh/iso-iec-jtc-1)/SC 29 内制定，该委员会负责 MPEG 成像标准。第一版作为 ISO/IEC 23008-12:2017 发布，随后是已被撤销的 2022 年版，以及当前于 2025 年 7 月 3 日发布的第三版。<sup>[1](https://www.iso.org/standard/89035.html)</sup> 第三版在 2024 年 1 月的第 145 次 MPEG 会议上获得批准，新增了渐进式解码——解码器分步渲染码流，每一步都提升感知图像质量——以及一种描述产生内容的相机的空间配置和特性的数据结构。<sup>[10](https://www.mpeg.org/meetings/mpeg-145/)</sup>

两项修正案扩展了 2025 年版：修正案 1 增加了对色调映射推导及其他技术的支持，修正案 2（日期为 2026 年）规定了一种低开销图像文件格式。<sup>[1](https://www.iso.org/standard/89035.html)</sup> 相关工作仍在继续：第四版草案文本于 2025 年 12 月分发，MPEG 正在探索在 HEIF 中承载静态高斯泼溅内容。<sup>[11](https://www.mpeg.org/standards/MPEG-H/12/)</sup>

## 格式的构建方式

HEIF 复用 ISO 基础媒体文件格式（ISOBMFF），即 MP4 背后的盒式结构容器。静态图像称为图像项，作为 ISOBMFF 项而非轨道存储。<sup>[12](https://trepo.tuni.fi/bitstream/handle/123456789/24147/heikkila.pdf?sequence=3)</sup> 该标准定义了结构品牌 'mif1'（用于单幅图像）和 'msf1'（用于图像序列）；这些品牌对文件结构施加要求，但允许内部使用任何图像编码格式。<sup>[13](https://datahacker.blog/files/85/A-V-Containers/125/HEIF-Standard-Technical-Paper-2015.pdf)</sup> 特定品牌随后将内容与编解码器绑定，2025 年版为 HEVC、AVC、JPEG、VVC 和 EVC 命名了品牌。<sup>[1](https://www.iso.org/standard/89035.html)</sup>

**图像序列**与 MP4 视频的主要区别在于处理器类型：MP4 视频使用 'vide'，而 HEIF 图像序列使用 'pict'。从语义上讲，MP4 像电影一样播放，而 HEIF 序列高效存储图像连拍、时间序列、曝光包围、实况照片和短 GIF 式动画。HEIF 序列携带一个 'CodingConstraints' 盒，并可选携带一个 'refs' 盒以信号通知参考帧，这使解码器无需解码所有前序图像即可到达特定图像。早期关于禁止图像重排序的限制已在标准的后续版本中取消。<sup>[4](https://docs.ogc.org/per/25-047.html)</sup>

## 特性

**派生图像**支持非破坏性编辑：原始编码图像保留在文件中，同时通过变换操作引入新图像，例如对一幅或多幅输入图像应用恒等变换、裁剪或 90、180、270 度旋转。<sup>[14](https://nokiatech.github.io/heif/technical.html)</sup>

**元数据**可作为项存储，并链接到其所描述的图像；支持的形式包括 Exif、XMP 和 MPEG-7，元数据项通过 'cdsc' 项引用关联图像。缩略图也是该格式的一部分。<sup>[14](https://nokiatech.github.io/heif/technical.html)</sup>

**分块与预测**继承自 HEVC。一组呈矩形排列的瓦片可归组为 HEVC 瓦片项，这简化了仅解码大图像一部分的操作，而预测编码的图像项允许例如选择序列中的任意帧作为封面图像而无需重新编码。<sup>[13](https://datahacker.blog/files/85/A-V-Containers/125/HEIF-Standard-Technical-Paper-2015.pdf)</sup><sup> • </sup><sup>[14](https://nokiatech.github.io/heif/technical.html)</sup>

## 压缩性能

效率声明取决于容器所承载的编解码器，主要是 HEIC 的 HEVC 帧内编码。洛桑联邦理工学院（EPFL）多媒体信号处理组的一项主观和客观评估发现，在同等质量下，HEVC 帧内编码相对 [JPEG 2000](https://www.edgepedia.org/zh/jpeg-2000) 4:4:4 平均降低 16% 码率，相对 JPEG 最高降低 43%。<sup>[6](https://www.researchgate.net/publication/261445860_Subjective_evaluation_of_HEVC_intra_coding_for_still_image_compression)</sup>

实际后果在转换中显现。在一项针对 1200 万像素照片语料库的公开基准测试中，将 HEIC 转换为 JPEG 使全部 24 张照片在测试的每个质量级别上都变得更大，高质量 HEIC 转换后体积与原体积之比的中位数为 1.75，低质量 HEIC 为 4.65；转换为 PNG 更糟，这一比值的中位数为 3.87 至 13.60，且无感知收益。<sup>[15](https://github.com/cleanor-app/cleanor-storage-lab)</sup> libheif 项目中的编码器比较发现，通过 x265 的 HEIC 在速度上大致与 SVT-AV1 相当，而 AOM 编码的 AVIF 在匹配工作点下运行耗时约为两倍，在最快设置下 HEIC/x265 以更低计算成本提供更好的压缩。<sup>[16](https://github.com/strukturag/libheif/wiki/HEIC-vs-AVIF-Benchmark)</sup>

## 采用与平台支持

**苹果**于 2017 年采用 HEIF 作为其相机应用的首选拍摄格式，对 HEVC 编码内容使用 .heic 和 .heics 扩展名，三星 Galaxy S10 等 Android 设备后来增加了支持。<sup>[2](https://arxiv.org/abs/2006.08060)</sup> 支持内置于 iOS 11 及更高版本、iPadOS、visionOS 和 macOS High Sierra 10.13 及更高版本，苹果提供转换途径，例如从“照片”或“预览”导出为 JPEG 或 PNG，以及传输到 Mac 或 PC 时的自动转换设置。<sup>[7](https://support.apple.com/en-ie/116944)</sup>

**Android** 自 9.0 起解码 HEIF，自 [Android 10](https://www.edgepedia.org/zh/android-10) 起可通过 MediaCodec 或 HeifWriter 编码，但是否支持由设备决定，10 位解码需要可选的 HEVC Main10 档次。<sup>[8](https://developer.android.com/media/platform/supported-formats)</sup> Android 10 还引入了动态深度格式，将深度数据存储在 HEIC 图像旁边的单独文件中，以便应用在后期处理中应用背景虚化等效果。<sup>[17](https://developer.android.com/about/versions/10/features?authuser=22)</sup>

**Windows** 通过 HEIF 图像扩展处理 HEIF，这是一个通过 [Microsoft Store](https://www.edgepedia.org/zh/microsoft-store) 分发的 Windows 成像组件（WIC）编解码器，向使用 WIC 的应用程序暴露 .heic 和 .heif 文件。<sup>[5](https://learn.microsoft.com/sv-se/previous-versions/windows/desktop/legacy/mt846532%28v%3Dvs.85%29)</sup>

**浏览器**是薄弱环节。根据 caniuse，HEIC 仅在 macOS 和 iOS 上的 [Safari](https://www.edgepedia.org/zh/safari-web-browser) 17.0 及更高版本中原生渲染；Chrome、Edge、Firefox 和主要 Android 浏览器均不支持，支持数据将此归因于复杂且昂贵的许可，并指出 AVIF 和 [JPEG XL](https://www.edgepedia.org/zh/jpeg-xl) 提供免费许可。<sup>[9](https://caniuse.com/heif)</sup> Web 开发者通常通过在服务器端转换上传文件来绕过这一缺口；开源 libheif 库提供 HEIF 和 AVIF 的解码和编码，包括一个 [WebAssembly](https://www.edgepedia.org/zh/webassembly) 构建，可在浏览器中约 500 毫秒内渲染 3 至 5 MB 的 HEIC 文件。<sup>[18](https://github.com/strukturag/libheif)</sup>

## 相关格式

**AVIF** 是将相同的容器理念应用于 AV1 编解码器：HEIC 和 AVIF 都是 HEIF 文件，区别在于所承载的编解码器。<sup>[3](https://narqo.com/formats/heif)</sup> 由于 AV1 免版税，AVIF 已成为面向 Web 的变体，基准测试将其列为最高效的有损格式之一；在一个 1200 万像素语料库中，它在 SSIM 0.95 时需要 640,546 字节，而 JPEG 需要 1,077,997 字节，约小 40.6%。<sup>[15](https://github.com/cleanor-app/cleanor-storage-lab)</sup>

**MIAF**（多图像应用格式，ISO/IEC 23000-22）位于 HEIF 之上。HEIF 规范定义了文件格式和一般编解码器要求，但未定义相机、编辑器、存储系统和播放设备互操作的具体互操作点；例如，拍摄设备可能采用一种 HEVC 档次写入内容，而播放设备仅解码 AVC。MIAF 完全兼容 HEIF，并增加了约束以确保更高的互操作性。<sup>[19](https://www.mpeg.org/standards/MPEG-A/22/)</sup>

该格式的复杂性在浏览器之外还有实际缺点。一项数字取证研究指出，HEIF 是一种与传统静态图像格式截然不同的复杂容器，这使从业者面临证据处理不当的风险，且其众多特性可能被用于隐藏数据。<sup>[2](https://arxiv.org/abs/2006.08060)</sup>

## References

1. [ISO/IEC 23008-12:2025, Information technology — High efficiency coding and media delivery in heterogeneous environments — Part 12: Image File Format, ISO](https://www.iso.org/standard/89035.html)
2. [Sean McKeown, Gordon Russell (2020). Forensic Considerations for the High Efficiency Image File Format (HEIF). arXiv.](https://arxiv.org/abs/2006.08060)
3. [HEIF file format explained: features, support, history, Narqo](https://narqo.com/formats/heif)
4. [OGC Testbed-21: Documentation of Updates to libheif Report](https://docs.ogc.org/per/25-047.html)
5. [HEIF Format Overview (Windows), Microsoft Learn](https://learn.microsoft.com/sv-se/previous-versions/windows/desktop/legacy/mt846532%28v%3Dvs.85%29)
6. [Hanhart, Rerabek, Korshunov, Ebrahimi (EPFL MMSPG). Subjective evaluation of HEVC intra coding for still image compression](https://www.researchgate.net/publication/261445860_Subjective_evaluation_of_HEVC_intra_coding_for_still_image_compression)
7. [Using HEIF or HEVC media on Apple devices, Apple Support](https://support.apple.com/en-ie/116944)
8. [Supported media formats, Android Developers](https://developer.android.com/media/platform/supported-formats)
9. [HEIF/HEIC image format, Can I use](https://caniuse.com/heif)
10. [MPEG 145 meeting report, MPEG](https://www.mpeg.org/meetings/mpeg-145/)
11. [Standards: MPEG-H Part 12, Image File Format, MPEG](https://www.mpeg.org/standards/MPEG-H/12/)
12. [High Efficiency Image File Format implementation, Master's thesis, Tampere University](https://trepo.tuni.fi/bitstream/handle/123456789/24147/heikkila.pdf?sequence=3)
13. [HEIF Standard Technical Paper (JCTVC-V0072), 2015](https://datahacker.blog/files/85/A-V-Containers/125/HEIF-Standard-Technical-Paper-2015.pdf)
14. [HEIF Technical Information, Nokia Technologies](https://nokiatech.github.io/heif/technical.html)
15. [cleanor-storage-lab: Open image-compression benchmarks and datasets, GitHub](https://github.com/cleanor-app/cleanor-storage-lab)
16. [HEIC vs AVIF Benchmark, libheif Wiki, GitHub](https://github.com/strukturag/libheif/wiki/HEIC-vs-AVIF-Benchmark)
17. [Android 10 features and APIs, Android Developers](https://developer.android.com/about/versions/10/features?authuser=22)
18. [strukturag/libheif: HEIF and AVIF decoder and encoder, GitHub](https://github.com/strukturag/libheif)
19. [Standards: MPEG-A Part 22, Multi-Image Application Format, MPEG](https://www.mpeg.org/standards/MPEG-A/22/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Data formats and serialization › Image and video formats

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/high-efficiency-image-file-format

English original: https://www.edgepedia.org/high-efficiency-image-file-format
