使用C / C ++读/写文件元数据 [英] Read/Write file metadata using C/C++

查看:129
本文介绍了使用C / C ++读/写文件元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过网络搜索,找不到使用C或C ++读取/写入文件元数据的方法,但是,有一些工具可用于此,并且还有在C#和Java中的API来执行此操作。但我想用C或C ++从头开始。



例如,读/写图片元数据。
$ b

发现有三种格式的元数据写入文件。 EXIF,IPTC和XMP。



感谢。

解决方案

你想要从头开始吗?



无论如何,你需要文档,你可能还想看一个现有的图书馆的帮助,特别是如果你没有经验的



您是否试过 Exiv


Exiv2是一个C ++库和一个命令
行实用程序,用于管理图像元数据。
它提供了对各种格式的图像的Exif,IPTC和XMP
元数据的快速和容易的读取和
写入访问。
Exiv2可用作免费软件
和商业许可证,在许多项目中使用



Searched through net, could't find a way to read/write file metadata using C or C++, however, there are tools available for this, and also there are API's in C# and Java to do this. But I want to do it from scratch in C or C++.

For example, read/write image metadata.

Have found out that there are three formats in which metadata is written to files. EXIF, IPTC and XMP.

Thanks.

解决方案

Why would you want to do it from scratch?

Anyway, you need documentation and you may also want to look at an existing library for helps, expecially if you have no experience in the field.

Have you tried Exiv ?

Exiv2 is a C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata of images in various formats. Exiv2 is available as free software and with a commercial license, and is used in many projects.

这篇关于使用C / C ++读/写文件元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆