我想在JPEG和PNG文件中读取/写入XMP元数据。有没有办法使用imagemagick读/写XMP元数据?
我能够做到这一点使用exiftool
~ $ exiftool -xmp-dc:description="FooBar" sample.png
1 image files updated
~ $ exiftool sample.png | grep "Description"
Description : FooBar
但是,我不能使用ImageMagick
~ $ identify -verbose sample.png | grep "Description"
我的理由写XMP元数据是读取XMP元数据所以它可以被Adobe产品读取。
问题
- 有没有办法使用ImageMagick读/写XMP元数据?
题外话,但与Adobe产品的兼容性并不是要操作的唯一原因XMP元数据。 http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf – asp
png不支持元数据 - > http://stackoverflow.com/questions/9542359/does-png-contain-exif-data-like-jpg –
这只是关于EXIF元数据(尽管Exiftool和Exiv2有一个解决方法)。 PNG支持XMP元数据https://en.wikipedia.org/wiki/Extensible_Metadata_Platform#Location_in_file_types *编辑:* Bah,没有检查日期 – StarGeek