将元数据附加到图像
假设我的问题此处得到解答,将元数据附加到图像的选项有哪些我的拇指文件夹?
我想在包含文件名和描述的文件夹中放置一个 xml 文件,但感觉这有点笨拙。
由于各种原因,我无法在这个项目中使用数据库,这是非常有限的。
有没有办法将元数据写入jpg文件?
我试图解决的问题是我需要显示图像及其内容的简短描述。如果你愿意的话,有点像标题。
任何想法都会非常受欢迎。
谢谢。
Assuming my question here gets answered what are the options to attaching meta data to an image in my thumbs folder?
I thought of placing an xml file in the folder which contains the filename and then the description of it but feel this to be a little clunky.
For various reasons I can't use a database in this project which is very limiting.
Is there a way to write meta data to the jpg file?
The problem i'm trying to solve is that I need to display the image along with a short description of what it is. kinda like a caption if you like.
Any thoughts would be very welcome.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我编写了一个应用程序,它将元数据写入图像文件本身的各种命名空间 IPTC、EXIF、IFD 和 XMP 中。该代码可在此处获取。您可以使用代码在图像中写入/读取元数据。希望这有帮助。
I have written an application that writes metadata into the image file itself into the various namespaces IPTC, EXIF, IFD and XMP. The code is available here. You can use the code to write/read metadata to and from the images. Hope this helps.