exiv2._tags

Exif key class and data attributes.

Classes

ExifKey

Concrete keys for Exif metadata and access to Exif tag reference data.

ExifTags

Access to Exif group and tag lists and misc.

GroupInfo

The details of an Exif group.

IfdId

Type to specify the IFD to which a metadata belongs.

SectionId

Section identifiers to logically group tags.

TagInfo

Tag information

class ExifKey

Bases: SwigPyObject

Concrete keys for Exif metadata and access to Exif tag reference data.

clone()
defaultTypeId()

Return the default type id for this tag.

familyName()
groupName()
idx()

Return the index (unique id of this key within the original Exif data, 0 if not set)

key()
setIdx()

Set the index.

tag()
tagDesc()
tagLabel()
tagName()
class ExifTags

Bases: SwigPyObject

Access to Exif group and tag lists and misc. tag reference methods, implemented as a static class.

static defaultCount()

Return the default number of components (not bytes!) key has. (0=any, -1=count not known)

static groupList()

Return read-only list of built-in groups

static ifdName()

Return the name of the IFD for the group.

static isExifGroup()

Return true if groupName is a TIFF or Exif IFD, else false. This is used to differentiate between standard Exif IFDs and IFDs associated with the makernote.

static isMakerGroup()

Return true if groupName is a makernote group.

static sectionName()

Return the name of the section for an Exif key.

static tagList()

Return read-only list of built-in groupName tags.

class GroupInfo

Bases: SwigPyObject

The details of an Exif group. Groups include IFDs and binary arrays.

groupName_

Group name, unique for each group.

ifdId_

IFD id

ifdName_

IFD name

items()

Get structure members.

Return type:

list of (str, value) tuple

Returns:

structure member (name, value) pairs (with any trailing underscores removed from names).

keys()

Get structure member names.

Return type:

list of str

Returns:

structure member names (with any trailing underscores removed).

tagList_

Tag list

values()

Get structure member values.

Return type:

list of value

Returns:

structure member values.

class IfdId

Bases: IntEnum

Type to specify the IFD to which a metadata belongs.

Maker note IFDs have been omitted from this enum.

exifId = 5
gpsId = 6
ifd0Id = 1
ifd1Id = 2
ifd2Id = 3
ifd3Id = 4
ifdIdNotSet = 0
ignoreId = 140
iopId = 7
lastId = 140
mpfId = 8
subImage1Id = 9
subImage2Id = 10
subImage3Id = 11
subImage4Id = 12
subImage5Id = 13
subImage6Id = 14
subImage7Id = 15
subImage8Id = 16
subImage9Id = 17
subThumb1Id = 18
class SectionId

Bases: IntEnum

Section identifiers to logically group tags.

A section consists of nothing more than a name, based on the Exif standard.

adobeOpi = 20
captureCond = 11
dateTime = 10
dngTags = 16
exifFormat = 5
exifVersion = 6
gpsTags = 12
imgCharacter = 3
imgConfig = 7
imgStruct = 1
iopTags = 13
lastSectionId = 21
makerTags = 15
mpfTags = 14
otherTags = 4
panaRaw = 17
recOffset = 2
relatedFile = 9
sectionIfNotSet = 0
tiffEp = 18
tiffPm6 = 19
userInfo = 8
class TagInfo

Bases: SwigPyObject

Tag information

count_

The number of values (not bytes!), 0=any, -1=count not known.

desc_

Short tag description

ifdId_

Link to the (preferred) IFD

items()

Get structure members.

Return type:

list of (str, value) tuple

Returns:

structure member (name, value) pairs (with any trailing underscores removed from names).

keys()

Get structure member names.

Return type:

list of str

Returns:

structure member names (with any trailing underscores removed).

name_

One word tag label

sectionId_

Section id

tag_

Tag

title_

Tag title

typeId_

Type id

values()

Get structure member values.

Return type:

list of value

Returns:

structure member values.