简体   繁体   English

在不影响可用性的情况下向图像添加任意数据

[英]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.

相关问题 Java:在不影响图像位置的情况下旋转bufferedimage - Java: Rotate bufferedimage without affecting the image's position Android:将数据保留在RAM中而不影响电池寿命 - Android: Keeping data in RAM without affecting battery life 在不影响文件开头的情况下尝试覆盖文件中间的数据 - Trying to overwrite data in the middle of a file without affecting the beginning of the file 如何在不影响真实数据的情况下执行Junit测试? - How to perform Junit tests without affecting real data? Kafka - 基于时间戳恢复数据而不影响工作消费者 - Kafka - restore data based on Timestamp without affecting working consumers 在不影响Java Swing应用程序的情况下检索mssql数据的最佳方法 - Best way to retrieve mssql data without affecting the app in java swing RGBImageFilter不影响我的图像 - RGBImageFilter not affecting my image 将list1添加到list2并更新list1而不影响list2 - Adding list1 to list2 and updating list1 without affecting list2 在任意角落绘制图像 - Draw an Image in arbitrary corners 我可以在JPA中将ID类型从“ int”修改为“ long”而不会影响DB中已经存在的表中的数据 - Can i modify id type in JPA, from “int” to “long” without affecting data in already present table in DB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM