简体   繁体   中英

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM