ExifInterface

public class ExifInterface
extends Object

java.lang.Object
   ↳ 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, DNG.

Summary

Constants

short ALTITUDE_ABOVE_SEA_LEVEL

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

short ALTITUDE_BELOW_SEA_LEVEL

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

int COLOR_SPACE_S_RGB

The constant used by TAG_COLOR_SPACE to denote sRGB color space.

int COLOR_SPACE_UNCALIBRATED

The constant used by TAG_COLOR_SPACE to denote Uncalibrated.

short CONTRAST_HARD

The constant used by TAG_CONTRAST to denote hard contrast.

short CONTRAST_NORMAL

The constant used by TAG_CONTRAST to denote normal contrast.

short CONTRAST_SOFT

The constant 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 constant used by TAG_EXPOSURE_MODE to denote the exposure mode is Auto.

short EXPOSURE_MODE_AUTO_BRACKET

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

short EXPOSURE_MODE_MANUAL

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

short EXPOSURE_PROGRAM_ACTION

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

short EXPOSURE_PROGRAM_APERTURE_PRIORITY

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

short EXPOSURE_PROGRAM_CREATIVE

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

short EXPOSURE_PROGRAM_LANDSCAPE_MODE

The constant 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 constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Manual.

short EXPOSURE_PROGRAM_NORMAL

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

short EXPOSURE_PROGRAM_NOT_DEFINED

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

short EXPOSURE_PROGRAM_PORTRAIT_MODE

The constant 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 constant used by TAG_EXPOSURE_PROGRAM to denote exposure program is Shutter priority.

short FILE_SOURCE_DSC

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

short FILE_SOURCE_OTHER

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

short FILE_SOURCE_REFLEX_SCANNER

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

short FILE_SOURCE_TRANSPARENT_SCANNER

The constant 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 constant used by TAG_PLANAR_CONFIGURATION to denote Chunky format.

short FORMAT_PLANAR

The constant used by TAG_PLANAR_CONFIGURATION to denote Planar format.

short GAIN_CONTROL_HIGH_GAIN_DOWN

The constant used by TAG_GAIN_CONTROL to denote high gain down.

short GAIN_CONTROL_HIGH_GAIN_UP

The constant used by TAG_GAIN_CONTROL to denote high gain up.

short GAIN_CONTROL_LOW_GAIN_DOWN

The constant used by TAG_GAIN_CONTROL to denote low gain down.

short GAIN_CONTROL_LOW_GAIN_UP

The constant used by TAG_GAIN_CONTROL to denote low gain up.

short GAIN_CONTROL_NONE

The constant used by TAG_GAIN_CONTROL to denote none gain adjustment.

String GPS_DIRECTION_MAGNETIC

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

String GPS_DIRECTION_TRUE

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

String GPS_DISTANCE_KILOMETERS

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

String GPS_DISTANCE_MILES

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

String GPS_DISTANCE_NAUTICAL_MILES

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

String GPS_MEASUREMENT_2D

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

String GPS_MEASUREMENT_3D

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

short GPS_MEASUREMENT_DIFFERENTIAL_CORRECTED

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

String GPS_MEASUREMENT_INTERRUPTED

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

String GPS_MEASUREMENT_IN_PROGRESS

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

short GPS_MEASUREMENT_NO_DIFFERENTIAL

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

String GPS_SPEED_KILOMETERS_PER_HOUR

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

String GPS_SPEED_KNOTS

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

String GPS_SPEED_MILES_PER_HOUR

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

String LATITUDE_NORTH

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

String LATITUDE_SOUTH

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

short LIGHT_SOURCE_CLOUDY_WEATHER

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

short LIGHT_SOURCE_COOL_WHITE_FLUORESCENT

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

short LIGHT_SOURCE_D50

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

short LIGHT_SOURCE_D55

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

short LIGHT_SOURCE_D65

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

short LIGHT_SOURCE_D75

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

short LIGHT_SOURCE_DAYLIGHT

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

short LIGHT_SOURCE_DAYLIGHT_FLUORESCENT

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

short LIGHT_SOURCE_DAY_WHITE_FLUORESCENT

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

short LIGHT_SOURCE_FINE_WEATHER

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

short LIGHT_SOURCE_FLASH

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

short LIGHT_SOURCE_FLUORESCENT

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

short LIGHT_SOURCE_ISO_STUDIO_TUNGSTEN

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

short LIGHT_SOURCE_OTHER

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

short LIGHT_SOURCE_SHADE

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

short LIGHT_SOURCE_STANDARD_LIGHT_A

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

short LIGHT_SOURCE_STANDARD_LIGHT_B

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

short LIGHT_SOURCE_STANDARD_LIGHT_C

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

short LIGHT_SOURCE_TUNGSTEN

The constant used by TAG_LIGHT_SOURCE to denote light source is Tungsten (incandescent light).

short LIGHT_SOURCE_UNKNOWN

The constant used by TAG_LIGHT_SOURCE to denote light source is unknown.

short LIGHT_SOURCE_WARM_WHITE_FLUORESCENT

The constant used by TAG_LIGHT_SOURCE to denote light source is Warm white fluorescent (L 2600 - 3250K).

short LIGHT_SOURCE_WHITE_FLUORESCENT

The constant used by TAG_LIGHT_SOURCE to denote light source is White fluorescent (WW 3250 - 3800K).

String LONGITUDE_EAST

The constant used by GPS longitude-related tags to denote the longitude is East longitude.

String LONGITUDE_WEST

The constant used by GPS longitude-related tags to denote the longitude is West longitude.

short METERING_MODE_AVERAGE

The constant used by TAG_METERING_MODE to denote metering mode is Average.

short METERING_MODE_CENTER_WEIGHT_AVERAGE

The constant used by TAG_METERING_MODE to denote metering mode is CenterWeightedAverage.

short METERING_MODE_MULTI_SPOT

The constant used by TAG_METERING_MODE to denote metering mode is MultiSpot.

short METERING_MODE_OTHER

The constant used by TAG_METERING_MODE to denote metering mode is other.

short METERING_MODE_PARTIAL

The constant used by TAG_METERING_MODE to denote metering mode is Partial.

short METERING_MODE_PATTERN

The constant used by TAG_METERING_MODE to denote metering mode is Pattern.

short METERING_MODE_SPOT

The constant used by TAG_METERING_MODE to denote metering mode is Spot.

short METERING_MODE_UNKNOWN

The constant used by TAG_METERING_MODE to denote metering mode is unknown.

int ORIENTATION_FLIP_HORIZONTAL

Indicates the image is left right reversed mirror.

int ORIENTATION_FLIP_VERTICAL

Indicates the image is upside down mirror, it can also be represented by flip horizontally firstly and rotate 180 degree clockwise.

int ORIENTATION_NORMAL

int ORIENTATION_ROTATE_180

Indicates the image is rotated by 180 degree clockwise.

int ORIENTATION_ROTATE_270

Indicates the image is rotated by 270 degree clockwise.

int ORIENTATION_ROTATE_90

Indicates the image is rotated by 90 degree clockwise.

int ORIENTATION_TRANSPOSE

In