On Thu, Dec 8, 2011 at 2:38 PM, Erlend Aakre <[email protected]>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? Regards Damjan
