metadata-extractor is a Java library for reading metadata from media files.
The easiest way is to install the library via its Maven package.
<dependency> <groupId>com.drewnoakes</groupId> <artifactId>metadata-extractor</artifactId> <version>2.15.0</version> </dependency>
Alternatively, download it from the releases page.
Metadata metadata = ImageMetadataReader.readMetadata(imagePath);
The library understands several formats of metadata, many of which may be present in a single image:
It will process files of type:
Camera-specific "makernote" data is decoded for cameras manufactured by:
Read getting started for an introduction to the basics of using this library.
The quickest way to have your questions answered is via Stack Overflow.
Check whether your question has already been asked, and if not, ask a new one tagged with both
Bugs and feature requests should be provided via the project's issue tracker. Please attach sample images where possible as most issues cannot be investigated without an image.
If you want to get your hands dirty, making a pull request is a great way to enhance the library. In general it's best to create an issue first that captures the problem you want to address. You can discuss your proposed solution in that issue. This gives others a chance to provide feedback before you spend your valuable time working on it.
An easier way to help is to contribute to the sample image file library used for research and testing.
This library is developed by Drew Noakes.
Thanks are due to the many users who sent in suggestions, bug reports, sample images from their cameras as well as encouragement. Wherever possible, they have been credited in the source code and commit logs.
More information about this project is available at: