/exiftool4j

Extract exif information from photographs using exiftool

Primary LanguageJavaOtherNOASSERTION

exiftool4j

Java / Kotlin wrapper for exiftool.

Prerequisites

  • exiftool in your PATH
  • Java 8

Usage

First, add exiftool4j to your dependencies using the jitpack repository.

Java

ExifData exifData = ExifExtractor.extract(jpegInputStream);
String aperture = exifData.get(ExifKey.APERTURE);
Optional<String> shutterSpeed = exifData.getOptional(ExifKey.SHUTTER_SPEED);

Kotlin

val exifData = jpegInputStream.extractExifData()
val aperture = exifData[ExifKey.APERTURE]