Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library for reading and writing IPTC metadata to JPEG and TIFF

Tags:

java

jpeg

tiff

iptc


Does anyone know some opensource Java library for reading and writing IPTC metadata to JPEG and TIFF? Now I'm using Apache Sanselan. Unfortunately, it can only read IPTC, not write (http://commons.apache.org/sanselan/formatsupport.html).
Will be very grateful for your assistance.
Denis.

like image 604
stormdb Avatar asked Oct 03 '10 21:10

stormdb


3 Answers

This seems to be quite a old question but following is some helpful info:

reading of metadata such as EXIF,IPTC..etc can be done using Apache Commons Imaging(Formerly Sanselan) or Metadata Extractor(by drew noaks).

writing of metadata can be done using Apache Commons Imaging using following classes:

EXIF - ExifRewriter (http://commons.apache.org/proper/commons-imaging/apidocs/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.html)

IPTC - JpegIptcRewriter (http://commons.apache.org/proper/commons-imaging/apidocs/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.html)

XMP - JpegXmpRewriter (http://commons.apache.org/proper/commons-imaging/apidocs/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpRewriter.html)

like image 185
dev009 Avatar answered Nov 02 '22 11:11

dev009


Take a look at IIM4J. Use IIMWriter to write IPTC IIM tags into (jpeg) images.

like image 43
Ben Asmussen Avatar answered Nov 02 '22 11:11

Ben Asmussen


The Apache Commons Imaging (formerly sanselan) has added support for writing IPTC metadata in the svn repo code for their next release. I have verified that this is so in the latest trunk code checked out from svn repo. The code seems stable so I am hoping a release is not too far away. For my project this is good enough.

like image 4
Farrukh Najmi Avatar answered Nov 02 '22 12:11

Farrukh Najmi