commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damjan Jovanovic <>
Subject Re: [sanselan] Unable to read jpeg comment field
Date Thu, 08 Dec 2011 13:03:25 GMT
On Thu, Dec 8, 2011 at 2:38 PM, Erlend Aakre <>wrote:

> I have 2 images, one has almost no metadata (no EXIF), it just has the
> JPEG Comment field set (not to be confused with the exif user comment
> field).
> When I try to read metadata from it:
> IImageMetadata meta = Sanselan.getMetadata(file);
> it returns null.
> The other picture is a picture from my camera (Canon EOS1000), which has
> lots of metadata.
> I've set the JPEG comment on this image with exiftool (exiftool
> -comment=foo file.jpg), I read the metadata:
> IImageMetadata meta = Sanselan.getMetadata(file);
> the metadata is a JpegImageMetadata object, I go trough everything in
> meta.getItems(), and meta.getExif().getAllField() without finding the
> jpeg comment. meta.getPhotoshop() is empty, and meta.getRawImageData()
> returns null.
> Is there a way to get the JPEG comment with sanselan?

I'm checking. If not, I'll make you a patch. Can you email me an image to
test with?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message