On Sun, 25 Mar 2012 11:42:30 -0400, Jeff Higgins wrote:
> On 03/25/2012 09:09 AM, Martin Gregorie wrote:
>> On Sat, 24 Mar 2012 23:13:46 -0400, Marty Blake wrote:
>>
>>> On 24/03/2012 5:37 PM, Martin Gregorie wrote:
>>>> Can anybody recommend a good EXIF tag handling Java package?
>>>
>>> Install Java ImageIO and the TIFF plugin for ImageIO and you can get
>>> at (and modify) JPEG EXIF tags using ImageIO. I'm not sure about other
>>> formats (except TIFF should work).
>>>
>> Thanks for that. It looks like all this is in the javax.imageio.*
>> packages.
>>
>> I've had a look at the docs for these packages, including the plugins,
>> and frankly I'm baffled and/or confused. There are packages that define
>> the tags but nothing that I can find that can, for instance, read or
>> write tags from something like a BufferedImage. Is there a tutorial or
>> other how-to that covers classes that provide accesss to EXIF tags?
>>
>>
> This may help. May not too. Pretty old.
> <http://www.barregren.se/blog/how-read-exif-and-iptc-java-image-i-o-api>
> A possible bug.
> <http://george.i.ph/blogs/george/2007...ite-jpeg-exif-
using-the-javaximageiometadata-package/>
> Links to the "standard" and "native" metadata formats.
> <http://docs.oracle.com/javase/7/docs...geio/metadata/
package-summary.html>
> The parser library referenced in the first link above.
> <http://code.google.com/p/metadata-extractor/>
Thanks for those links. That Google parser is read-only, but its
documentation looks useful.
Just now I thought to look at Apache Commons and found the Sanselan
package, which does a similar job to the javax.imagio.* stuff but as a
free-standing package and, unlike them, it includes EXIF read/write
abilities.
Its interesting that all this stuff is about the same age: Java 1.4 or 5
and none of it seems to have been updated since. Maybe, since nothing has
changed in the JPEG/TIFF worlds since then it hasn't needed any updates,
though as its all decidedly light on documentation, some changes there
would be nice for those of us who don't understand the structure of image
files: another common thread in all these packages is that the authors
all appear to assume that everybody is an expert on image files and their
contents.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |