Google is committed to advancing racial equity for Black communities. See how.


Read and write image file EXIF tags.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
April 1, 2020 1.2.0 - - 1.3.0-alpha01

Declaring dependencies

To add a dependency on Exifinterface, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

dependencies {
    implementation "androidx.exifinterface:exifinterface:1.2.0"

For more information about dependencies, see Add build dependencies.


Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.3.0

Version 1.3.0-alpha01

February 19, 2020

androidx.exifinterface:exifinterface:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.

API Changes

  • Added a new method: ExifInterface.getGpsDateTime()

Version 1.2.0

Version 1.2.0

April 1, 2020

androidx.exifinterface:exifinterface:1.2.0 is released. Version 1.2.0 contains these commits.

Major changes since 1.1.0

  • Added support for adding EXIF to PNG files
  • Added support for WebP files and EXIF data only stream
  • Added an API to check if the specified mime type is supported

Version 1.2.0-rc01

February 19, 2020

androidx.exifinterface:exifinterface:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.

Bug Fixes

  • Fixed an issue where JPEG files were incorrected saved if the JPEG had XMP data

Version 1.2.0-beta01

December 18, 2019

androidx.exifinterface:exifinterface:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.

New features

  • Added support for adding EXIF to PNG files
  • Added support support for reading and writing EXIF from WebP files
  • Added support for an EXIF data only stream

API changes

  • Added an API to check if the specified mime type is supported
  • Exposed the read and write OffsetTime* tags

Bug fixes

  • Fixed an issue where the incorrect offsets were being returned for getAttributeRange()

Version 1.1.0

Version 1.1.0

November 20, 2019

androidx.exifinterface:exifinterface:1.1.0 is released. Version 1.1.0 contains these commits.

Important changes since 1.0.0

  • Support for HEIF format and more XMP tags
  • Added support for constructing an ExifInterface object from a File or FileDescriptor
  • Added more methods for getting attribute: hasAttribute, getAttributeBytes, and getAttributesRange

Version 1.1.0-rc01

October 9, 2019

androidx.exifinterface:exifinterface:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.

Bug fixes

  • Added a missing format name (IFD) to prevent an ArrayIndexOutOfBoundsException on loadAttributes
  • Prevented the deletion of the origin file when an exception happens while calling saveAttributes
  • Fixed an exception issue when there is a call to saveAttributes() after overwriting a file.

Version 1.1.0-beta01

July 2, 2019

androidx.exifinterface:exifinterface:1.1.0-beta01 is released. The commits included in this version can be found here.

New features

  • Throws NullPointerException when null is set for @NonNull arguments
  • Support for XMP tags

API changes

  • Added more methods for getting attribute info
  • hasAttribute, getAttributeBytes, and getAttributesRange

Bug fixes

  • Prevent file descriptor memory leak

Version 1.1.0-alpha01

March 13, 2019

androidx.exifinterface:exifinterface:1.1.0-alpha01 is released. The full list of commits included in this version can be found here.

New features

  • Support HEIF format

API changes

  • Added more constructors of ExifInterface

Bug fixes

  • Fixed the check of possible overflow for thumbnail image (aosp/748608)