Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13168

Re: EXIF tag handling in Java

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: EXIF tag handling in Java
Date 2012-03-25 16:46 +0000
Organization UK Free Software Network
Message-ID <jkni4n$tfb$2@localhost.localdomain> (permalink)
References <jkleq5$dhh$1@localhost.localdomain> <jkm2ha$aa5$2@speranza.aioe.org> <jkn5f5$qn4$1@localhost.localdomain> <jknea0$u54$1@dont-email.me>

Show all headers | View raw


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/09/06/read-and-write-jpeg-exif-
using-the-javaximageiometadata-package/>
> Links to the "standard" and "native" metadata formats.
> <http://docs.oracle.com/javase/7/docs/api/javax/imageio/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       |

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-24 21:37 +0000
  Re: EXIF tag handling in Java Marty Blake <blake3334@nowhere.invalid> - 2012-03-24 23:13 -0400
    Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 13:09 +0000
      Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 11:42 -0400
        Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:22 -0400
          Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:10 +0000
        Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 16:46 +0000
          Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:59 -0400
            Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:15 +0000
              Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 14:08 -0400
                Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:34 +0000
  Re: EXIF tag handling in Java Knute Johnson <nospam@knutejohnson.com> - 2012-03-25 10:46 -0700
    Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:13 +0000
  Re: EXIF tag handling in Java "John B. Matthews" <nospam@nospam.invalid> - 2012-03-25 14:45 -0400
    Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 23:37 +0000
      Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 11:56 -0700
        Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:48 +0000
        Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:52 +0000
          Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 13:29 -0700
            Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 21:58 +0000
              Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 16:24 -0700
                Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-26 18:19 -0700
                Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 19:03 -0700
                Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-27 09:06 -0700

csiph-web