Share

gpstools

Tracker: Feature Requests

5 reading exif, xmp, iptc metadata - ID: 2886744
Last Update: Settings changed ( sf-robot )

Would like to be able to also read metadata from image files using JNI and
libexiv2.
For example using the command line exiv2, one can get a list of all exif,
iptc and xmp metadata in an image file. Would like that capability
accessible from Java via JNI. (without running a java process on exiv2.exe,
which is what I do now.)
The metadata returned can be an array of records.
Sorry, I dont know too much C++ to describe the feature any further.
Thanks


Matt ( blyefd ) - 2009-10-26 22:26

5

Closed

None

Moritz Ringler

None

exifloc

Public


Comments ( 3 )

Date: 2009-11-11 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-10-27 18:31
Sender: ringlerProject Admin

Hi Matt,
I don't know a general-purpose Java-wrapper for libexiv2. However, if you
just want to *read* metadata you can also use an all-Java framework, such
as Apache Sanselan (not quite mature yet), or MetadataExtractor (no XMP
support). Getting xmp out of an image is rather easy since it is
character-based. A quick and not-so-terribly-dirty implementation would
just look for the xmpmeta tags and extract everything in between.
Afterwards you can process the XMP with your favourite XML API (SAX, DOM,
JDOM, XPath, ...). If you just want to process JPEGs you can also use the
XMP extraction code from gpsdings. Have a look at
net.sourceforge.gpstools.xmp.XMPJpeg. You can probably (I think you can but
I haven't checked) use the net.sourceforge.gpstools.xmp and
net.sourceforge.gpstools.jpeg packages without the rest of gpsdings.
Regards,
Moritz


Date: 2009-10-26 22:35
Sender: blyefd

Sorry, after reading more on exifloc, I now understand it to be a tool for
a particular purpose - to write to the image file.
I guess what I was looking for was a general purpose JNI wrapper to
libexiv2 so that I can use the 'print' (and other) functionality from
java.
If you know where I can find a JNI wrapper for libexiv2 can you please let
me know? thanks
(If I knew C++ I would try and do it.)


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
close_date 2009-10-27 18:31 2009-11-11 02:20 sf-robot
allow_comments 1 2009-11-11 02:20 sf-robot
status_id Pending 2009-11-11 02:20 sf-robot
close_date - 2009-10-27 18:31 ringler
status_id Open 2009-10-27 18:31 ringler
assigned_to nobody 2009-10-26 22:27 blyefd