views:

569

answers:

2

The system I'm working on has a feature to extract metadata from JPEG files using the com.drew.metadata package. http://www.drewnoakes.com/code/exif/javadoc/ However that is limited to JPEG files, and now a customer has asked about extracting IPTC from TIF, and possibly other image formats.

Does anyone know about similar APIs to Drew Nokes one, that can extract IPTC from TIF?

Ideally this would be a pure Java approach like the com.drew.metadata one.

+1  A: 

There's a good example here of using the imageio lib to access IPTC here

http://www.barregren.se/blog/how-read-exif-and-iptc-java-image-i-o-api

Unfortunately, you'll still have to handle some of the work yourself.

Kevin Wright
A: 

If you cannot find a pure Java implementation, you could consider using the Java bindings to ImageMagick (JMagick). That would allow for a plethora of different possible output formats.

gpampara