在不影响可用性的情况下向图像添加任意数据 [英] Adding arbitrary data to an image without affecting usability
问题描述
我想在图像中包含有关图像的某些信息。我认为这个要求与元数据(我认为谈论特定信息,如作者,采取日期等)不同。我想要包含的信息可能是一些随机字节。在任何标准图像查看器中,图像仍应可见。我不想隐藏字节(我不想寻找隐写术)。我只想要我可以从我自己的应用程序(比如基于Java)访问这些字节并使用/修改它们。
I want to include certain information about an image in the image itself. The requirement, i think, is different from the meta data (which i think talks about specific information such as author, date taken etc). The information i want to include may be some random bytes. The image should be still viewable in any standard image viewer. I dont want to "hide" the bytes (m not looking for steganography). I merely want that i can access these bytes from my own application (say Java based) and use / modify the same.
推荐答案
EXIF和XMP都允许您添加任意数据以及您想要的任何数据。您可能希望将二进制数据编码为ASCII,但这很简单。
Both EXIF and XMP allow you to add arbitrary tags with whatever data you want. You may want to encode your binary data into ASCII, but that's trivial.
这篇关于在不影响可用性的情况下向图像添加任意数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!