Can you recommend a library that lets me add XMP data to a TIFF file? Preferably a library that can be used with Java.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- How to get the background from multiple images by
- StackExchange API - Deserialize Date in JSON Respo
There is JempBox which is open source and allows the manipulation of XMP streams, but it doesn't look like it will read/write the XMP data in a TIFF file.
There is also Chilkat which is not open source, but does appear to do what you want.
It's been a while, but it may still be useful to someone: Apache Commons has a library called Sanselan suitable for this task. It's a bit dated and the documentation is sparse, but it does the job well nevertheless:
You may have to be careful with multipage TIFFs though, because
Sanselan.getBufferedImage
will probably only get the first (so only the first gets written back).