Class PelTag

Description

Class with static methods for Exif tags.

This class defines the constants that represents the Exif tags known to PEL. They are supposed to be used whenever one needs to specify an Exif tag, and they will be denoted by the pseudo-type PelTag throughout the documentation.

Please note that the constrains on the format and number of components given here are advisory only. To follow the Exif specification one should obey them, but there is nothing that prevents you from creating an IMAGE_LENGTH entry with two or more components, even though the standard says that there should be exactly one component.

All the methods in this class are static and should be called with the Exif tag on which they should operate.

Located in /PelTag.php (line 65)


	
			
Class Constant Summary
 APERTURE_VALUE = 0x9202
 ARTIST = 0x013B
 BATTERY_LEVEL = 0x828F
 BITS_PER_SAMPLE = 0x0102
 BRIGHTNESS_VALUE = 0x9203
 CFA_PATTERN = 0xA302
 COLOR_SPACE = 0xA001
 COMPRESSION = 0x0103
 CONTRAST = 0xA408
 COPYRIGHT = 0x8298
 CUSTOM_RENDERED = 0xA401
 DATE_TIME = 0x0132
 DOCUMENT_NAME = 0x010D
 EXIF_IFD_POINTER = 0x8769
 EXIF_VERSION = 0x9000
 EXPOSURE_INDEX = 0xA215
 EXPOSURE_MODE = 0xA402
 EXPOSURE_PROGRAM = 0x8822
 EXPOSURE_TIME = 0x829A
 FILE_SOURCE = 0xA300
 FILL_ORDER = 0x010A
 FLASH = 0x9209
 FLASH_ENERGY = 0xA20B
 FNUMBER = 0x829D
 FOCAL_LENGTH = 0x920A
 GAIN_CONTROL = 0xA407
 GAMMA = 0xA500
 GPS_ALTITUDE = 0x0006
 GPS_ALTITUDE_REF = 0x0005
 GPS_DATE_STAMP = 0x001D
 GPS_DEST_BEARING = 0x0018
 GPS_DIFFERENTIAL = 0x001E
 GPS_DOP = 0x000B
 GPS_LATITUDE = 0x0002
 GPS_LATITUDE_REF = 0x0001
 GPS_LONGITUDE = 0x0004
 GPS_MAP_DATUM = 0x0012
 GPS_MEASURE_MODE = 0x000A
 GPS_SATELLITES = 0x0008
 GPS_SPEED = 0x000D
 GPS_SPEED_REF = 0x000C
 GPS_STATUS = 0x0009
 GPS_TIME_STAMP = 0x0007
 GPS_TRACK = 0x000F
 GPS_TRACK_REF = 0x000E
 GPS_VERSION_ID = 0x0000
 IMAGE_LENGTH = 0x0101
 IMAGE_UNIQUE_ID = 0xA420
 IMAGE_WIDTH = 0x0100
 IPTC_NAA = 0x83BB
 JPEG_PROC = 0x0200
 LIGHT_SOURCE = 0x9208
 MAKE = 0x010F
 MAKER_NOTE = 0x927C
 METERING_MODE = 0x9207
 MODEL = 0x0110
 OECF = 0x8828
 ORIENTATION = 0x0112
 PRINT_IM = 0xC4A5
 RESOLUTION_UNIT = 0x0128
 ROWS_PER_STRIP = 0x0116
 SATURATION = 0xA409
 SCENE_TYPE = 0xA301
 SENSING_METHOD = 0xA217
 SHARPNESS = 0xA40A
 SOFTWARE = 0x0131
 STRIP_OFFSETS = 0x0111
 SUBJECT_AREA = 0x9214
 SUBJECT_DISTANCE = 0x9206
 SUBJECT_LOCATION = 0xA214
 SUB_SEC_TIME = 0x9290
 TRANSFER_RANGE = 0x0156
 USER_COMMENT = 0x9286
 WHITE_BALANCE = 0xA403
 WHITE_POINT = 0x013E
 XP_AUTHOR = 0x9C9D
 XP_COMMENT = 0x9C9C
 XP_KEYWORDS = 0x9C9E
 XP_SUBJECT = 0x9C9F
 XP_TITLE = 0x9C9B
 X_RESOLUTION = 0x011A
 Y_RESOLUTION = 0x011B
Method Summary
 static string getName (int $type, PelTag $tag)
 string getTitle (int $type, PelTag $tag)
Methods
static getName (line 1353)

Returns a short name for an Exif tag.

  • return: the short name of the tag, e.g., 'ImageWidth' for the IMAGE_WIDTH tag. If the tag is not known, the string 'Unknown:0xTTTT' will be returned where 'TTTT' is the hexadecimal representation of the tag.
string getName (int $type, PelTag $tag)
getTitle (line 1668)

Returns a title for an Exif tag.

  • return: the title of the tag, e.g., 'Image Width' for the IMAGE_WIDTH tag. If the tag isn't known, the string 'Unknown Tag: 0xTT' will be returned where 'TT' is the hexadecimal representation of the tag.
string getTitle (int $type, PelTag $tag)
Class Constants
APERTURE_VALUE = 0x9202 (line 591)

Aperture

Format: PelFormat::RATIONAL.

Components: 1.

ARTIST = 0x013B (line 291)

Person who created the image.

Format: PelFormat::ASCII.

Components: any number.

BATTERY_LEVEL = 0x828F (line 425)

Battery level.

Format: Unknown.

Components: Unknown.

BITS_PER_SAMPLE = 0x0102 (line 110)

Number of bits per component.

Format: PelFormat::SHORT.

Components: 3.

BRIGHTNESS_VALUE = 0x9203 (line 600)

Brightness

Format: PelFormat::SRATIONAL.

Components: 1.

CFA_PATTERN = 0xA302 (line 922)

CFA pattern.

Format: PelFormat::UNDEFINED.

Components: any number.

CFA_REPEAT_PATTERN_DIM = 0x828D (line 416)

CFA Repeat Pattern Dim.

Format: PelFormat::SHORT.

Components: 2.

COLOR_SPACE = 0xA001 (line 787)

Color space information.

Format: PelFormat::SHORT.

Components: 1.

COMPONENTS_CONFIGURATION = 0x9101 (line 564)

Meaning of each component.

Format: PelFormat::UNDEFINED.

Components: 4.

COMPRESSED_BITS_PER_PIXEL = 0x9102 (line 573)

Image compression mode.

Format: PelFormat::RATIONAL.

Components: 1.

COMPRESSION = 0x0103 (line 119)

Compression scheme.

Format: PelFormat::SHORT.

Components: 1.

CONTRAST = 0xA408 (line 994)

Contrast.

Format: PelFormat::SHORT.

Components: 1.

COPYRIGHT = 0x8298 (line 435)

Copyright holder.

Format: PelFormat::ASCII, modelled by the PelEntryCopyright class.

Components: any number.

CUSTOM_RENDERED = 0xA401 (line 931)

Custom image processing.

Format: PelFormat::SHORT.

Components: 1.

DATE_TIME = 0x0132 (line 282)

File change date and time.

Format: PelFormat::ASCII, modelled by the PelEntryTime class.

Components: 20.

DATE_TIME_DIGITIZED = 0x9004 (line 555)

Date and time of digital data generation.

Format: PelFormat::ASCII, modelled by the PelEntryTime class.

Components: 20.

DATE_TIME_ORIGINAL = 0x9003 (line 545)

Date and time of original data generation.

Format: PelFormat::ASCII, modelled by the PelEntryTime class.

Components: 20.

DEVICE_SETTING_DESCRIPTION = 0xA40B (line 1021)

Device settings description.

This tag indicates information on the picture-taking conditions of a particular camera model. The tag is used only to indicate the picture-taking conditions in the reader.

DIGITAL_ZOOM_RATIO = 0xA404 (line 958)

Digital zoom ratio.

Format: PelFormat::RATIONAL.

Components: 1.

DOCUMENT_NAME = 0x010D (line 146)

Document Name

Format: Unknown.

Components: Unknown.

EXIF_IFD_POINTER = 0x8769 (line 471)

Exif IFD Pointer

Format: PelFormat::LONG.

Components: 1.

EXIF_VERSION = 0x9000 (line 535)

Exif version.

Format: PelFormat::UNDEFINED, modelled by the PelEntryVersion class.

Components: 4.

EXPOSURE_BIAS_VALUE = 0x9204 (line 609)

Exposure Bias

Format: PelFormat::SRATIONAL.

Components: 1.

EXPOSURE_INDEX = 0xA215 (line 886)

Exposure index.

Format: PelFormat::RATIONAL.

Components: 1.

EXPOSURE_MODE = 0xA402 (line 940)

Exposure mode.

Format: PelFormat::SHORT.

Components: 1.

EXPOSURE_PROGRAM = 0x8822 (line 489)

Exposure Program

Format: PelFormat::SHORT.

Components: 1.

EXPOSURE_TIME = 0x829A (line 444)

Exposure Time

Format: PelFormat::RATIONAL.

Components: 1.

FILE_SOURCE = 0xA300 (line 904)

File source.

Format: PelFormat::UNDEFINED.

Components: 1.

FILL_ORDER = 0x010A (line 137)

Fill Orde

Format: Unknown.

Components: Unknown.

FLASH = 0x9209 (line 654)

Flash

Format: PelFormat::SHORT.

Components: 1.

FLASH_ENERGY = 0xA20B (line 832)

Flash energy.

Format: PelFormat::RATIONAL.

Components: 1.

FLASH_PIX_VERSION = 0xA000 (line 778)

Supported Flashpix version

Format: PelFormat::UNDEFINED, modelled by the PelEntryVersion class.

Components: 4.

FNUMBER = 0x829D (line 453)

FNumber

Format: PelFormat::RATIONAL.

Components: 1.

FOCAL_LENGTH = 0x920A (line 663)

Focal Length

Format: PelFormat::RATIONAL.

Components: 1.

FOCAL_LENGTH_IN_35MM_FILM = 0xA405 (line 967)

Focal length in 35mm film.

Format: PelFormat::RATIONAL.

Components: 1.

FOCAL_PLANE_RESOLUTION_UNIT = 0xA210 (line 868)

Focal plane resolution unit.

Format: PelFormat::SHORT.

Components: 1.

FOCAL_PLANE_X_RESOLUTION = 0xA20E (line 850)

Focal plane X resolution.

Format: PelFormat::RATIONAL.

Components: 1.

FOCAL_PLANE_Y_RESOLUTION = 0xA20F (line 859)

Focal plane Y resolution.

Format: PelFormat::RATIONAL.

Components: 1.

GAIN_CONTROL = 0xA407 (line 985)

Gain control.

Format: PelFormat::SHORT.

Components: 1.

GAMMA = 0xA500 (line 1048)

Gamma.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_ALTITUDE = 0x0006 (line 1120)

Altitude.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_ALTITUDE_REF = 0x0005 (line 1111)

Altitude reference.

Format: PelFormat::BYTE.

Components: 1.

GPS_AREA_INFORMATION = 0x001C (line 1318)

Name of GPS area.

Format: PelFormat::UNDEFINED.

Components: Any.

GPS_DATE_STAMP = 0x001D (line 1327)

GPS date.

Format: PelFormat::ASCII.

Components: 11.

GPS_DEST_BEARING = 0x0018 (line 1282)

Bearing of destination.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_DEST_BEARING_REF = 0x0017 (line 1273)

Reference for bearing of destination.

Format: PelFormat::ASCII.

Components: 2.

GPS_DEST_DISTANCE = 0x001A (line 1300)

Distance to destination.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_DEST_DISTANCE_REF = 0x0019 (line 1291)

Reference for distance to destination.

Format: PelFormat::ASCII.

Components: 2.

GPS_DEST_LATITUDE = 0x0014 (line 1246)

Latitude of destination.

Format: PelFormat::RATIONAL.

Components: 3.

GPS_DEST_LATITUDE_REF = 0x0013 (line 1237)

Reference for latitude of destination.

Format: PelFormat::ASCII.

Components: 2.

GPS_DEST_LONGITUDE = 0x0016 (line 1264)

Longitude of destination.

Format: PelFormat::RATIONAL.

Components: 3.

GPS_DEST_LONGITUDE_REF = 0x0015 (line 1255)

Reference for longitude of destination.

Format: PelFormat::ASCII.

Components: 2.

GPS_DIFFERENTIAL = 0x001E (line 1336)

GPS differential correction.

Format: PelFormat::SHORT.

Components: 1.

GPS_DOP = 0x000B (line 1165)

Measurement precision.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_IMG_DIRECTION = 0x0011 (line 1219)

Direction of image.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_IMG_DIRECTION_REF = 0x0010 (line 1210)

Reference for direction of image.

Format: PelFormat::ASCII.

Components: 2.

GPS_INFO_IFD_POINTER = 0x8825 (line 507)

GPS Info IFD Pointer

Format: PelFormat::LONG.

Components: 1.

GPS_LATITUDE = 0x0002 (line 1084)

Latitude.

Format: PelFormat::RATIONAL.

Components: 3.

GPS_LATITUDE_REF = 0x0001 (line 1075)

North or South Latitude.

Format: PelFormat::ASCII.

Components: 2.

GPS_LONGITUDE = 0x0004 (line 1102)

Longitude.

Format: PelFormat::RATIONAL.

Components: 3.

GPS_LONGITUDE_REF = 0x0003 (line 1093)

East or West Longitude.

Format: PelFormat::ASCII.

Components: 2.

GPS_MAP_DATUM = 0x0012 (line 1228)

Geodetic survey data used.

Format: PelFormat::ASCII.

Components: Any.

GPS_MEASURE_MODE = 0x000A (line 1156)

GPS measurement mode.

Format: PelFormat::ASCII.

Components: 2.

GPS_PROCESSING_METHOD = 0x001B (line 1309)

Name of GPS processing method.

Format: PelFormat::UNDEFINED.

Components: Any.

GPS_SATELLITES = 0x0008 (line 1138)

GPS satellites used for measurement.

Format: PelFormat::ASCII.

Components: Any.

GPS_SPEED = 0x000D (line 1183)

Speed of GPS receiver.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_SPEED_REF = 0x000C (line 1174)

Speed unit.

Format: PelFormat::ASCII.

Components: 2.

GPS_STATUS = 0x0009 (line 1147)

GPS receiver status.

Format: PelFormat::ASCII.

Components: 2.

GPS_TIME_STAMP = 0x0007 (line 1129)

GPS time (atomic clock).

Format: PelFormat::RATIONAL.

Components: 3.

GPS_TRACK = 0x000F (line 1201)

Direction of movement.

Format: PelFormat::RATIONAL.

Components: 1.

GPS_TRACK_REF = 0x000E (line 1192)

Reference for direction of movement.

Format: PelFormat::ASCII.

Components: 2.

GPS_VERSION_ID = 0x0000 (line 1066)

GPS tag version.

Format: PelFormat::BYTE.

Components: 4.

IMAGE_DESCRIPTION = 0x010E (line 155)

Image Description

Format: PelEntryAscii.

Components: any number.

IMAGE_LENGTH = 0x0101 (line 101)

Image length.

Format: PelFormat::SHORT or PelFormat::LONG.

Components: 1.

IMAGE_UNIQUE_ID = 0xA420 (line 1039)

Image unique ID.

Format: PelFormat::ASCII.

Components: 32.

IMAGE_WIDTH = 0x0100 (line 92)

Image width.

Format: PelFormat::SHORT or PelFormat::LONG.

Components: 1.

INTEROPERABILITY_IFD_POINTER = 0xA005 (line 823)

Interoperability IFD Pointer

Format: PelFormat::LONG.

Components: 1.

INTEROPERABILITY_INDEX = 0x0001 (line 74)

Interoperability index.

Format: PelFormat::ASCII.

Components: 4.

INTEROPERABILITY_VERSION = 0x0002 (line 83)

Interoperability version.

Format: PelFormat::UNDEFINED.

Components: 4.

INTER_COLOR_PROFILE = 0x8773 (line 480)

Inter Color Profile

Format: PelFormat::UNDEFINED.

Components: any number.

IPTC_NAA = 0x83BB (line 462)

IPTC/NAA

Format: PelFormat::LONG.

Components: any number.

ISO_SPEED_RATINGS = 0x8827 (line 516)

ISO Speed Ratings

Format: PelFormat::SHORT.

Components: 2.

JPEG_INTERCHANGE_FORMAT = 0x0201 (line 336)

Offset to JPEG SOI.

Format: PelFormat::LONG.

Components: 1.

JPEG_INTERCHANGE_FORMAT_LENGTH = 0x0202 (line 345)

Bytes of JPEG data.

Format: PelFormat::LONG.

Components: 1.

JPEG_PROC = 0x0200 (line 327)

JPEGProc

Format: Unknown.

Components: Unknown.

LIGHT_SOURCE = 0x9208 (line 645)

Light Source

Format: PelFormat::SHORT.

Components: 1.

MAKE = 0x010F (line 164)

Manufacturer

Format: PelEntryAscii.

Components: any number.

MAKER_NOTE = 0x927C (line 681)

Maker Note

Format: PelFormat::UNDEFINED.

Components: any number.

MAX_APERTURE_VALUE = 0x9205 (line 618)

Max Aperture Value

Format: PelFormat::RATIONAL.

Components: 1.

METERING_MODE = 0x9207 (line 636)

Metering Mode

Format: PelFormat::SHORT.

Components: 1.

MODEL = 0x0110 (line 173)

Model

Format: PelFormat::ASCII.

Components: any number.

OECF = 0x8828 (line 525)

OECF

Format: PelFormat::UNDEFINED.

Components: any number.

ORIENTATION = 0x0112 (line 191)

Orientation of image.

Format: PelFormat::SHORT.

Components: 1.

PHOTOMETRIC_INTERPRETATION = 0x0106 (line 128)

Pixel composition.

Format: PelFormat::SHORT.

Components: 1.

PIXEL_X_DIMENSION = 0xA002 (line 796)

Valid image width.

Format: PelFormat::SHORT or PelFormat::LONG.

Components: 1.

PIXEL_Y_DIMENSION = 0xA003 (line 805)

Valid image height.

Format: PelFormat::SHORT or PelFormat::LONG.

Components: 1.

PLANAR_CONFIGURATION = 0x011C (line 245)

Image data arrangement.

Format: PelFormat::SHORT.

Components: 1.

PRIMARY_CHROMATICITIES = 0x013F (line 309)

Chromaticities of primaries.

Format: PelFormat::RATIONAL.

Components: 6.

PRINT_IM = 0xC4A5 (line 1057)

PrintIM

Format: PelFormat::UNDEFINED.

Components: unknown.

REFERENCE_BLACK_WHITE = 0x0214 (line 381)

Pair of black and white reference values.

Format: PelFormat::RATIONAL.

Components: 6.

RELATED_IMAGE_FILE_FORMAT = 0x1000 (line 390)

Related Image File Format

Format: Unknown.

Components: Unknown.

RELATED_IMAGE_LENGTH = 0x1002 (line 407)

Related Image Length

Format: Unknown, probably PelFormat::SHORT?

Components: Unknown, probably 1.

RELATED_IMAGE_WIDTH = 0x1001 (line 399)

Related Image Width

Format: Unknown, probably PelFormat::SHORT?

Components: Unknown, probably 1.

RELATED_SOUND_FILE = 0xA004 (line 814)

Related audio file.

Format: PelFormat::ASCII.

Components: any number.

RESOLUTION_UNIT = 0x0128 (line 254)

Unit of X and Y resolution.

Format: PelFormat::SHORT.

Components: 1.

ROWS_PER_STRIP = 0x0116 (line 209)

Rows per Strip

Format: PelFormat::SHORT or PelFormat::LONG.

Components: 1.

SAMPLES_PER_PIXEL = 0x0115 (line 200)

Number of components.

Format: PelFormat::SHORT.

Components: 1.

SATURATION = 0xA409 (line 1003)

Saturation.

Format: PelFormat::SHORT.

Components: 1.

SCENE_CAPTURE_TYPE = 0xA406 (line 976)

Scene capture type.

Format: PelFormat::SHORT.

Components: 1.

SCENE_TYPE = 0xA301 (line 913)

Scene type.

Format: PelFormat::UNDEFINED.

Components: 1.

SENSING_METHOD = 0xA217 (line 895)

Sensing method.

Format: PelFormat::SHORT.

Components: 1.

SHARPNESS = 0xA40A (line 1012)

Sharpness.

Format: PelFormat::SHORT.

Components: 1.

SHUTTER_SPEED_VALUE = 0x9201 (line 582)

Shutter speed

Format: PelFormat::SRATIONAL.

Components: 1.

SOFTWARE = 0x0131 (line 272)

Software used.

Format: PelFormat::ASCII.

Components: any number.

SPATIAL_FREQUENCY_RESPONSE = 0xA20C (line 841)

Spatial frequency response.

Format: PelFormat::UNDEFINED.

Components: any number.

SPECTRAL_SENSITIVITY = 0x8824 (line 498)

Spectral Sensitivity

Format: PelFormat::ASCII.

Components: any number.

STRIP_BYTE_COUNTS = 0x0117 (line 218)

Strip Byte Count

Format: PelFormat::SHORT or PelFormat::LONG.

Components: any number.

STRIP_OFFSETS = 0x0111 (line 182)

Strip Offsets

Format: PelFormat::SHORT or PelFormat::LONG.

Components: any number.

SUBJECT_AREA = 0x9214 (line 672)

Subject Area

Format: PelFormat::SHORT.

Components: 4.

SUBJECT_DISTANCE = 0x9206 (line 627)

Subject Distance

Format: PelFormat::SRATIONAL.

Components: 1.

SUBJECT_DISTANCE_RANGE = 0xA40C (line 1030)

Subject distance range.

Format: PelFormat::SHORT.

Components: 1.

SUBJECT_LOCATION = 0xA214 (line 877)

Subject location.

Format: PelFormat::SHORT.

Components: 1.

SUB_SEC_TIME = 0x9290 (line 700)

SubSec Time

Format: PelFormat::ASCII.

Components: any number.

SUB_SEC_TIME_DIGITIZED = 0x9292 (line 718)

SubSec Time Digitized

Format: PelFormat::ASCII.

Components: any number.

SUB_SEC_TIME_ORIGINAL = 0x9291 (line 709)

SubSec Time Original

Format: PelFormat::ASCII.

Components: any number.

TRANSFER_FUNCTION = 0x012D (line 263)

Transfer function.

Format: PelFormat::SHORT.

Components: 3.

TRANSFER_RANGE = 0x0156 (line 318)

Transfer Range

Format: Unknown.

Components: Unknown.

USER_COMMENT = 0x9286 (line 691)

User Comment

Format: PelFormat::UNDEFINED, modelled by the PelEntryUserComment class.

Components: any number.

WHITE_BALANCE = 0xA403 (line 949)

White balance.

Format: PelFormat::SHORT.

Components: 1.

WHITE_POINT = 0x013E (line 300)

White point chromaticity.

Format: PelFormat::RATIONAL.

Components: 2.

XP_AUTHOR = 0x9C9D (line 747)

Windows XP Author

Format: PelFormat::BYTE.

Components: any number.

XP_COMMENT = 0x9C9C (line