Exiv2 是一款处理照片元数据的命令行工具兼 C++ 库,能读写、删除和修改 Exif、IPTC、XMP 及 ICC 信息。它支持批量操作,可一键清除照片中的隐私数据,适合注重隐私的摄影师、需要整理图片库的 Linux 用户,以及开发图像处理程序的工程师。
核心亮点:
- 支持读写删除修改 Exif、IPTC、XMP 和 ICC 元数据
- 命令行批量处理照片,一键清除隐私信息
- 提供 C++ 库接口,方便集成到自有程序
- 覆盖常见图片格式及 BMFF 类文件
当前版本 v0.28.9(2026-08-30 发布),开源协议 GPL-2.0,GitHub 1,172 star。


核心信息
| 软件名称 | Exiv2(Exiv2/exiv2) |
| 当前版本 | v0.28.9 |
| 更新日期 | 2026-08-30 |
| 开源协议 | GPL-2.0 |
| 软件分类 | Linux 桌面 |
| 关键词 | cli、exif、exif-interface、exif-metadata、image-metadata、iptc |
本次更新内容
- 新版本增强了对多款相机和镜头的识别,新增照片方向处理及更多拍摄信息标签,查看照片元数据更准确。
- 修复了多种图片格式解析中的越界读取和计算错误,提升读取异常文件时的稳定性与安全性。
- 优化了视频和图像元数据的读取逻辑,减少崩溃风险,让普通用户处理照片更安心。
查看官方英文更新日志(原文)
## What's Changed * Stop the parser from backtracking by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9309 * Fix copy-paste error in WebPImage::inject_VP8X height check (backport #9280) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9314 * Use readOrThrow in MatroskaVideo::decodeBlock for EOF detection (backport #9282) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9315 * Fix wrong variable in findXmp XMP trailer search loop (backport #9284) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9316 * Bound setMediaStream search to the trak atom size (backport #9286) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9319 * Use integer division in TiffBinaryArray::doCount (backport #9288) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9330 * Add orientation handling and tests for Sony camera files (backport #9295) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9335 * Add Tokina 80-400. (backport #9296) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9336 * Add more CanonFileInfo tags (backport #9312) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9338 * Add new Exif 3.1 tags (backport #9298) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9337 * Revert "Bound setMediaStream search to the trak atom size" by @kmilos in https://github.com/Exiv2/exiv2/pull/9340 * Add enforce to avoid out-of-bounds read by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9308 * Add Pentax HDF tag (backport #9317) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9344 * Revert to Windows 2022 to fix build failure by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9350 * Update CodeCov keybase url (backport #9327) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9348 * Add try-catch around std::stoi (backport #9305) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9357 * Update SECURITY.md by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9355 * Fix/issue 3318 dx tiff xmp (backport #9341) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9342 * fix out-of-bounds iterator in readStringWcharTag (backport #9310) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9360 * enforce minimum FileTypeBox length in Jp2Image::readMetadata (backport #9313) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9362 * enforce minimum FileTypeBox length in Jp2Image::printStructure (backport #9318) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9351 * Change type of allocate64 to uint64_t (backport #9307) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9353 * Fix off-by-one error by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9377 * Fix totalRead calculation (backport #9379) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9382 * change unique_ptr to vector (backport #3427) by @mergify[bot] in https://github.com/Exiv2/exiv2/pull/9384 * Fix missing throw by @kevinbackhouse in https://github.com/Exiv2/exiv2/pull/9385 * Make t
下载地址
以下为官方原包,本站不二次打包,点击直接下载:
exiv2-0.28.9-Linux-x86_64.tar.gz(官方原包 | 9.6 MB)
✅ 上方 SHA256 与官方发布值一致,可自行核对。
快速上手
- 解压下载好的压缩包,进入解压出的目录,找到其中的 ReadMe.txt 并阅读安装说明。
- 按 ReadMe.txt 的指引把库和命令行工具安装到系统中,完成后即可在终端调用 exiv2。
- 在终端运行 exiv2 命令并指定图片文件,查看其 Exif、IPTC、XMP 等元数据。
- 使用 exiv2 的修改与删除选项,对图片元数据做写入或清除操作。
提示:操作前先备份图片,元数据修改后无法自动还原。
讨论(0 条)