-
Notifications
You must be signed in to change notification settings - Fork 480
Not as of yet. The architecture of the library is steadily heading that way, but it's not possible today.
Don't be mislead by the various setter methods on Directory
classes.
Metadata metadata = ImageMetadataReader.readMetadata(file);
Directory directory = metadata.getDirectory(ExifSubIFDDirectory.class);
Date date = directory.getDate(ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL);
More code samples can be found at GettingStarted.
Camera manufacturers store information that specific to the model of camera being used in a devoted section known as a makernote. Metadata Extractor has good support for many manufacturer makernotes, but new cameras are being produced all the time.
If you see a lot of unknown tag values being output for images from your camera, you can help to decode them!
Firstly, look online and see whether they're documented somewhere. Manufacturers rarely release official specifications, but someone may have already held a successful investigation.
If there's no information available out there, then grab your camera and start trying various settings and seeing which values change in your image. A little time spent as a detective may uncover the meaning of one or more makernote tags.
However you find the answer, if Metadata Extractor doesn't understand the tag then either update the code yourself and send a pull request, or document your findings in the issue tracker.
An unknown author produced a great example of this on pastebin.