Stay organized with collections Save and categorize content based on your preferences.
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 TAG_LIGHT_SOURCE to denote light source is Tungsten (incandescent light).

short LIGHT_SOURCE_UNKNOWN

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

short LIGHT_SOURCE_WARM_WHITE_FLUORESCENT

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

short LIGHT_SOURCE_WHITE_FLUORESCENT

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

String LONGITUDE_EAST

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

String LONGITUDE_WEST

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

short METERING_MODE_AVERAGE

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

short METERING_MODE_CENTER_WEIGHT_AVERAGE

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

short METERING_MODE_MULTI_SPOT

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

short METERING_MODE_OTHER

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

short METERING_MODE_PARTIAL

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

short METERING_MODE_PATTERN

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

short METERING_MODE_SPOT

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

short METERING_MODE_UNKNOWN

The contant 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

Indicates the image is flipped about top-left <--> bottom-right axis, it can also be represented by flip horizontally firstly and rotate 270 degree clockwise.

int ORIENTATION_TRANSVERSE

Indicates the image is flipped about top-right <--> bottom-left axis, it can also be represented by flip horizontally firstly and rotate 90 degree clockwise.

int ORIENTATION_UNDEFINED

int ORIGINAL_RESOLUTION_IMAGE

The constant used by TAG_NEW_SUBFILE_TYPE.

int PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO

The constant used by TAG_PHOTOMETRIC_INTERPRETATION.

int PHOTOMETRIC_INTERPRETATION_RGB

The constant used by TAG_PHOTOMETRIC_INTERPRETATION.

int PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO

The constant used by TAG_PHOTOMETRIC_INTERPRETATION.

int PHOTOMETRIC_INTERPRETATION_YCBCR

The constant used by TAG_PHOTOMETRIC_INTERPRETATION.

int REDUCED_RESOLUTION_IMAGE

The constant used by TAG_NEW_SUBFILE_TYPE.

short RENDERED_PROCESS_CUSTOM

The contant used by TAG_CUSTOM_RENDERED to denote special processing is used.

short RENDERED_PROCESS_NORMAL

The contant used by TAG_CUSTOM_RENDERED to denote no special processing is used.

short RESOLUTION_UNIT_CENTIMETERS

The contant used to denote resolution unit as centimeters.

short RESOLUTION_UNIT_INCHES

The contant used to denote resolution unit as inches.

short SATURATION_HIGH

The contant used by TAG_SHARPNESS to denote high saturation.

short SATURATION_LOW

The contant used by TAG_SATURATION to denote low saturation.

short SATURATION_NORMAL

The contant used by TAG_SATURATION to denote normal saturation.

short SCENE_CAPTURE_TYPE_LANDSCAPE

The contant used by TAG_SCENE_CAPTURE_TYPE to denote the scene capture type is Landscape.

short SCENE_CAPTURE_TYPE_NIGHT

The contant used by TAG_SCENE_CAPTURE_TYPE to denote the scene capture type is Night scene.

short SCENE_CAPTURE_TYPE_PORTRAIT

The contant used by TAG_SCENE_CAPTURE_TYPE to denote the scene capture type is Portrait.

short SCENE_CAPTURE_TYPE_STANDARD

The contant used by TAG_SCENE_CAPTURE_TYPE to denote the scene capture type is Standard.

short SCENE_TYPE_DIRECTLY_PHOTOGRAPHED

The contant used by TAG_SCENE_TYPE to denote the scene is directly photographed.

short SENSITIVITY_TYPE_ISO_SPEED

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is ISO speed.

short SENSITIVITY_TYPE_REI

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Recommended exposure index (REI).

short SENSITIVITY_TYPE_REI_AND_ISO

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Recommended exposure index (REI) and ISO speed.

short SENSITIVITY_TYPE_SOS

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Standard output sensitivity (SOS).

short SENSITIVITY_TYPE_SOS_AND_ISO

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Standard output sensitivity (SOS) and ISO speed.

short SENSITIVITY_TYPE_SOS_AND_REI

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Standard output sensitivity (SOS) and recommended exposure index (REI).

short SENSITIVITY_TYPE_SOS_AND_REI_AND_ISO

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is Standard output sensitivity (SOS) and recommended exposure index (REI) and ISO speed.

short SENSITIVITY_TYPE_UNKNOWN

The contant used by TAG_SENSITIVITY_TYPE to denote sensitivity type is unknown.

short SENSOR_TYPE_COLOR_SEQUENTIAL

The contant used by TAG_SENSING_METHOD to denote the image sensor type is Color sequential area sensor.

short SENSOR_TYPE_COLOR_SEQUENTIAL_LINEAR

The contant used by TAG_SENSING_METHOD to denote the image sensor type is Color sequential linear sensor.

short SENSOR_TYPE_NOT_DEFINED

The contant used by TAG_SENSING_METHOD to denote the image sensor type is not defined.

short SENSOR_TYPE_ONE_CHIP

The contant used by TAG_SENSING_METHOD to denote the image sensor type is One-chip color area sensor.

short SENSOR_TYPE_THREE_CHIP

The contant used by TAG_SENSING_METHOD to denote the image sensor type is Three-chip color area sensor.

short SENSOR_TYPE_TRILINEAR

The contant used by TAG_SENSING_METHOD to denote the image sensor type is Trilinear sensor.

short SENSOR_TYPE_TWO_CHIP

The contant used by TAG_SENSING_METHOD to denote the image sensor type is Two-chip color area sensor.