Exif meta data extractor in Java.
Designed to be used as simple as possible:
- Import the single file Exif.java into your project where you want
- Then to parse the exif metadata of a jpeg file: Exif exif = new Exif(new File("picture.jpeg"));
- Then to retrieve a specific data:
- Either you know the exif tag value: exif.get(0x0112).getValue()
- Either you know the exif tag name: exif.get("Orientation").getValue()
- Finally the getValue() function return either a String, Integer or Rationnal value. A 'rationnal' is a new class composed by a nominator and a denominator (it's the raw float data of exif format).
Note: even if the tag is unknown, it will be extracted by this lib, so if you know the tag you want, just use the getter with the tag value (not name).
The complete list of known tag (value, name and descriptions) is available in function initExifDatas(). If one is missing for your camera, feel free to contact me, and provide me an example picture.
- JPEGOptimizer (https://collicalex.github.io/JPEGOptimizer/)
You can activate or deactivated the debug mode, by changing the value of the private parameter '_debug' in top of the class.
#TODO:
- Decode MarkerNote
- Decode UserComment
- Decode Thumbnail (other than compressFormat 6)
- Decode GPSInfo subIDF
- In Rational: add a getDoubleValue() which return the computation, and add a getIntegerValue() which return the computation only if the divide result is an integer!
- Add GPS specific class for Lat/Lng with converter hhmmss to degrees etc