Android 12 Developer Preview is here! Try it out, and give us your feedback!

ExifInterface

open class ExifInterface
kotlin.Any
   ↳ androidx.exifinterface.media.ExifInterface

This is a class for reading and writing Exif tags in various image file formats.

Supported for reading: JPEG, PNG, WebP, HEIF, DNG, CR2, NEF, NRW, ARW, RW2, ORF, PEF, SRW, RAF.

Supported for writing: JPEG, PNG, WebP.

Summary

Constants
static Short

The constant used by TAG_GPS_ALTITUDE_REF to denote the altitude is above sea level.

static Short

The constant used by TAG_GPS_ALTITUDE_REF to denote the altitude is below sea level.

static Int

The constant used by TAG_COLOR_SPACE to denote sRGB color space.

static Int

The constant used by TAG_COLOR_SPACE to denote Uncalibrated.

static Short

The constant used by TAG_CONTRAST to denote hard contrast.

static Short

The constant used by TAG_CONTRAST to denote normal contrast.

static Short

The constant used by TAG_CONTRAST to denote soft contrast.

static Int

The constant used by TAG_COMPRESSION, see DNG Specification 1.

static Int

The constant used by TAG_COMPRESSION to denote the image is huffman compressed.

static Int

The constant used by TAG_COMPRESSION to denote the image is JPEG.

static Int

The constant used by TAG_COMPRESSION, see DNG Specification 1.

static Int

The constant used by TAG_COMPRESSION, see DNG Specification 1.

static Int

The constant used by TAG_COMPRESSION to denote the image is pack-bits compressed.

static Int

The constant used by TAG_COMPRESSION to denote the image is not compressed.

static Short

The constant used by TAG_EXPOSURE_MODE to denote the exposure mode is Auto.

static Short

The constant used by TAG_EXPOSURE_MODE to denote the exposure mode is Auto bracket.

static Short

The constant used by TAG_EXPOSURE_MODE to denote the exposure mode is Manual.

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Action program (biased toward fast shutter speed).

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Aperture priority.

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Creative program (biased toward depth of field).

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Landscape mode (for landscape photos with the background in focus).

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Manual.

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Normal.

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is not defined.

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Portrait mode (for closeup photos with the background out of focus).

static Short

The constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Shutter priority.

static Short

The constant used by TAG_FILE_SOURCE to denote the source is DSC.

static Short

The constant used by TAG_FILE_SOURCE to denote the source is other.

static Short

The constant used by TAG_FILE_SOURCE to denote the source is scanner of reflex type.

static Short

The constant used by TAG_FILE_SOURCE to denote the source is scanner of transparent type.

static Short

The flag used by TAG_FLASH to indicate whether the flash is fired.

static Short

The flag used by TAG_FLASH to indicate the camera's flash mode is Auto.

static Short

The flag used by TAG_FLASH to indicate the camera's flash mode is Compulsory flash firing.

static Short

The flag used by TAG_FLASH to indicate the camera's flash mode is Compulsory flash suppression.

static Short

The flag used by TAG_FLASH to indicate no flash function is present.

static Short

The flag used by TAG_FLASH to indicate red-eye reduction is supported.

static Short

The flag used by TAG_FLASH to indicate strobe return light is detected.

static Short

The flag used by TAG_FLASH to indicate strobe return light is not detected.

static Short

The constant used by TAG_PLANAR_CONFIGURATION to denote Chunky format.

static Short

The constant used by TAG_PLANAR_CONFIGURATION to denote Planar format.

static Short

The constant used by TAG_GAIN_CON