好的元数据图像转储实用程序?
我正在寻找最好的工具来提取嵌入在最流行的图像文件格式(特别是 JPEG 和 PNG)中的所有元数据。我想知道里面有什么(XMP、Exif、IPTC/IIM 等)。理想情况下,我正在寻找一种可以从命令行运行的一体化解决方案,但有兴趣了解该领域任何其他有价值的工具。
我发现以下各项各有优点/缺点:
I'm looking for the best tool out there to extract any and all metadata embedded within the most popular image file formats (JPEG and PNG specifically). I would like to know about whatever is in there (XMP, Exif, IPTC/IIM, etc.). Ideally I am looking for an all-in-one solution that I can run from a command line, but am interested to hear about any other tools in this area that are of value.
I have found the following, each with advantages/disadvantages:
ExifTool
is good, but the output is a little more roughshod that I would like.DumpImage
from the Metadata Working Group has good formatting of the metadata it does find, but doesn't support PNG.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我最近发布了 Binspector,我最终编写了这个工具来回答这个问题,令我满意。该工具的基本前提是它采用格式语法并使用它来分析二进制文件。只要格式语法和二进制文件格式良好,就可以检查和分析无数的二进制文件和格式。
代码托管在 GitHub 上,该工具的博客为 此处。 (该工具的概述帖子为 在这里。)
I have recently released Binspector, the tool I ended up writing to answer this question to my own satisfaction. The basic premise of the tool is that it takes a format grammar and uses it to analyze a binary file. As long as the format grammar and the binary file are well-formed, one can inspect and analyze innumerable binary files and formats.
Code is hosted on GitHub, and a blog for the tool is here. (The overview post for the tool is here.)
由于您没有提到任何首选编程语言,我以 PHP 为例。
PHP 有一个 Exif 扩展,可用于轻松地从图像中检索元数据。
http://www.php.net/manual/en/ function.exif-read-data.php
您可以轻松创建一个可以从命令行调用的脚本。我必须补充一点,该扩展似乎仅提供对 JPEG 和 TIFF 图像的支持。
As you did not mention any preferred programming language I take PHP as an example.
There is an Exif Extension for PHP which can be used to easily retrieve Metadata from an Image.
http://www.php.net/manual/en/function.exif-read-data.php
You could easily create a script that you can call from the command line. I must add that the extension only seems to provide support for JPEG and TIFF images.
您可以尝试官方的 ADOBE XMP SDK。可以从以下位置下载:
http://www.adobe.com/devnet/xmp.html< /a>
这是完整的 SDK,用于读取/写入/操作各种格式的元数据。
在 SDK 包中,有一个您可能感兴趣的特定示例。转到“samples”文件夹,根据文档(包中提供)构建示例。查找示例 exe“DumpFile”。这会将文件中的所有元数据转储到控制台。
You could try the official ADOBE XMP SDK. It is available for download at :
http://www.adobe.com/devnet/xmp.html
This is the complete SDK to read/write/manipulate metadata across a variety of formats.
In the SDK package there is one particular sample that might be of interest to you. Go to the "samples" folder build the samples as per documentation (available in the package). Look for the sample exe "DumpFile". This dumps all the metadata in the file to the console.