[英]Adding arbitrary data to an image without affecting usability
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.
我只想要我可以从我自己的应用程序(比如基于Java)访问这些字节并使用/修改它们。
Both EXIF and XMP allow you to add arbitrary tags with whatever data you want. EXIF和XMP都允许您添加任意数据以及您想要的任何数据。 You may want to encode your binary data into ASCII, but that's trivial.
您可能希望将二进制数据编码为ASCII,但这很简单。
Well, I do not know if it is the better solution, but you can use steganography. 好吧,我不知道它是否是更好的解决方案,但你可以使用隐写术。 It let you store any kind of information (simply bytes) in the pixel data.
它允许您在像素数据中存储任何类型的信息(只是字节)。
An example here, using an image processing framework: http://marvinproject.sourceforge.net/en/plugins/steganography.html 这里的一个例子,使用图像处理框架: http : //marvinproject.sourceforge.net/en/plugins/steganography.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.