added in version 25.1.0
belongs to Maven artifact com.android.support:exifinterface:28.0.0-alpha1

ExifInterface

public class ExifInterface
extends Object

java.lang.Object
   ↳ android.support.media.ExifInterface


This is a class for reading and writing Exif tags in a JPEG file or a RAW image file.

Supported formats are: JPEG, DNG, CR2, NEF, NRW, ARW, RW2, ORF, PEF, SRW and RAF.

Attribute mutation is supported for JPEG image files.

Summary

Constants

short ALTITUDE_ABOVE_SEA_LEVEL

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

short ALTITUDE_BELOW_SEA_LEVEL

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

int COLOR_SPACE_S_RGB

The contant used by TAG_COLOR_SPACE to denote sRGB color space.

int COLOR_SPACE_UNCALIBRATED

The contant used by TAG_COLOR_SPACE to denote Uncalibrated.

short CONTRAST_HARD

The contant used by TAG_CONTRAST to denote hard contrast.

short CONTRAST_NORMAL

The contant used by TAG_CONTRAST to denote normal contrast.

short CONTRAST_SOFT

The contant used by TAG_CONTRAST to denote soft contrast.

int DATA_DEFLATE_ZIP

The constant used by TAG_COMPRESSION, see DNG Specification 1.4.0.0.

int DATA_HUFFMAN_COMPRESSED

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

int DATA_JPEG

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

int DATA_JPEG_COMPRESSED

The constant used by TAG_COMPRESSION, see DNG Specification 1.4.0.0.

int DATA_LOSSY_JPEG

The constant used by TAG_COMPRESSION, see DNG Specification 1.4.0.0.

int DATA_PACK_BITS_COMPRESSED

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

int DATA_UNCOMPRESSED

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

short EXPOSURE_MODE_AUTO

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

short EXPOSURE_MODE_AUTO_BRACKET

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

short EXPOSURE_MODE_MANUAL

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

short EXPOSURE_PROGRAM_ACTION

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

short EXPOSURE_PROGRAM_APERTURE_PRIORITY

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

short EXPOSURE_PROGRAM_CREATIVE

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

short EXPOSURE_PROGRAM_LANDSCAPE_MODE

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

short EXPOSURE_PROGRAM_MANUAL

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

short EXPOSURE_PROGRAM_NORMAL

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

short EXPOSURE_PROGRAM_NOT_DEFINED

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

short EXPOSURE_PROGRAM_PORTRAIT_MODE

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

short EXPOSURE_PROGRAM_SHUTTER_PRIORITY

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

short FILE_SOURCE_DSC

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

short FILE_SOURCE_OTHER

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

short FILE_SOURCE_REFLEX_SCANNER

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

short FILE_SOURCE_TRANSPARENT_SCANNER

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

short FLAG_FLASH_FIRED

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

short FLAG_FLASH_MODE_AUTO

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

short FLAG_FLASH_MODE_COMPULSORY_FIRING

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

short FLAG_FLASH_MODE_COMPULSORY_SUPPRESSION

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

short FLAG_FLASH_NO_FLASH_FUNCTION

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

short FLAG_FLASH_RED_EYE_SUPPORTED

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

short FLAG_FLASH_RETURN_LIGHT_DETECTED

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

short FLAG_FLASH_RETURN_LIGHT_NOT_DETECTED

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

short FORMAT_CHUNKY

The contant used by TAG_PLANAR_CONFIGURATION to denote Chunky format.

short FORMAT_PLANAR

The contant used by TAG_PLANAR_CONFIGURATION to denote Planar format.

short GAIN_CONTROL_HIGH_GAIN_DOWN

The contant used by TAG_GAIN_CONTROL to denote high gain down.

short GAIN_CONTROL_HIGH_GAIN_UP

The contant used by TAG_GAIN_CONTROL to denote high gain up.

short GAIN_CONTROL_LOW_GAIN_DOWN

The contant used by TAG_GAIN_CONTROL to denote low gain down.

short GAIN_CONTROL_LOW_GAIN_UP

The contant used by TAG_GAIN_CONTROL to denote low gain up.

short GAIN_CONTROL_NONE

The contant used by TAG_GAIN_CONTROL to denote none gain adjustment.

String GPS_DIRECTION_MAGNETIC

The contant used by GPS attributes to denote the direction is magnetic direction.

String GPS_DIRECTION_TRUE

The contant used by GPS attributes to denote the direction is true direction.

String GPS_DISTANCE_KILOMETERS

The contant used by TAG_GPS_DEST_DISTANCE_REF to denote the distance unit is kilometers.

String GPS_DISTANCE_MILES

The contant used by TAG_GPS_DEST_DISTANCE_REF to denote the distance unit is miles.

String GPS_DISTANCE_NAUTICAL_MILES

The contant used by TAG_GPS_DEST_DISTANCE_REF to denote the distance unit is nautical miles.

String GPS_MEASUREMENT_2D

The contant used by TAG_GPS_MEASURE_MODE to denote GPS measurement is 2-dimensional.

String GPS_MEASUREMENT_3D

The contant used by TAG_GPS_MEASURE_MODE to denote GPS measurement is 3-dimensional.

short GPS_MEASUREMENT_DIFFERENTIAL_CORRECTED

The contant used by TAG_GPS_DIFFERENTIAL to denote differential correction is applied.

String GPS_MEASUREMENT_INTERRUPTED

The contant used by TAG_GPS_STATUS to denote GPS measurement is interrupted.

String GPS_MEASUREMENT_IN_PROGRESS

The contant used by TAG_GPS_STATUS to denote GPS measurement is in progress.

short GPS_MEASUREMENT_NO_DIFFERENTIAL

The contant used by TAG_GPS_DIFFERENTIAL to denote no differential correction is applied.

String GPS_SPEED_KILOMETERS_PER_HOUR

The contant used by TAG_GPS_SPEED_REF to denote the speed unit is kilometers per hour.

String GPS_SPEED_KNOTS

The contant used by TAG_GPS_SPEED_REF to denote the speed unit is knots.

String GPS_SPEED_MILES_PER_HOUR

The contant used by TAG_GPS_SPEED_REF to denote the speed unit is miles per hour.

String LATITUDE_NORTH

The contant used by GPS latitude-related tags to denote the latitude is North latitude.

String LATITUDE_SOUTH

The contant used by GPS latitude-related tags to denote the latitude is South latitude.

short LIGHT_SOURCE_CLOUDY_WEATHER

The contant used by TAG_LIGHT_SOURCE to denote light source is Cloudy weather.

short LIGHT_SOURCE_COOL_WHITE_FLUORESCENT

The contant used by TAG_LIGHT_SOURCE to denote light source is Cool white fluorescent (W 3800 - 4500K).

short LIGHT_SOURCE_D50

The contant used by TAG_LIGHT_SOURCE to denote light source is D50.

short LIGHT_SOURCE_D55

The contant used by TAG_LIGHT_SOURCE to denote light source is D55.

short LIGHT_SOURCE_D65

The contant used by TAG_LIGHT_SOURCE to denote light source is D65.

short LIGHT_SOURCE_D75

The contant used by TAG_LIGHT_SOURCE to denote light source is D75.

short LIGHT_SOURCE_DAYLIGHT

The contant used by TAG_LIGHT_SOURCE to denote light source is Daylight.

short LIGHT_SOURCE_DAYLIGHT_FLUORESCENT

The contant used by TAG_LIGHT_SOURCE to denote light source is Daylight fluorescent (D 5700 - 7100K).

short LIGHT_SOURCE_DAY_WHITE_FLUORESCENT

The contant used by TAG_LIGHT_SOURCE to denote light source is Day white fluorescent (N 4600 - 5500K).

short LIGHT_SOURCE_FINE_WEATHER

The contant used by TAG_LIGHT_SOURCE to denote light source is Fine weather.

short LIGHT_SOURCE_FLASH

The contant used by TAG_LIGHT_SOURCE to denote light source is Flash.

short LIGHT_SOURCE_FLUORESCENT

The contant used by TAG_LIGHT_SOURCE to denote light source is Fluorescent.

short LIGHT_SOURCE_ISO_STUDIO_TUNGSTEN

The contant used by TAG_LIGHT_SOURCE to denote light source is ISO studio tungsten.

short LIGHT_SOURCE_OTHER

The contant used by TAG_LIGHT_SOURCE to denote light source is other.

short LIGHT_SOURCE_SHADE

The contant used by TAG_LIGHT_SOURCE to denote light source is Shade.

short LIGHT_SOURCE_STANDARD_LIGHT_A

The contant used by TAG_LIGHT_SOURCE to denote light source is Standard light A.

short LIGHT_SOURCE_STANDARD_LIGHT_B

The contant used by TAG_LIGHT_SOURCE to denote light source is Standard light B.

short LIGHT_SOURCE_STANDARD_LIGHT_C

The contant used by TAG_LIGHT_SOURCE to denote light source is Standard light C.

short LIGHT_SOURCE_TUNGSTEN

The contant used by