Java / Kotlin wrapper for exiftool.
exiftool
in your PATH- Java 8
First, add exiftool4j to your dependencies using the jitpack repository.
ExifData exifData = ExifExtractor.extract(jpegInputStream);
String aperture = exifData.get(ExifKey.APERTURE);
Optional<String> shutterSpeed = exifData.getOptional(ExifKey.SHUTTER_SPEED);
val exifData = jpegInputStream.extractExifData()
val aperture = exifData[ExifKey.APERTURE]