Skip to main content

GetMetaDataTag Method

Gets a single metadata tag stored in the image.

Definition​

Tag = GetMetaDataTag(Model, Key)

Parameters​

ParameterDescription
ModelThe model/category of metadata to get
KeyThe key ID of the tag to get

Returns​

Multivalued tag structure

Remarks​

The GetMetaDataTag method gets a single metadata tag associated with a given model. In most images, metadata is grouped or categorized into models. Within a model is a series of tags. Each tag has a key, a value, and a description. There are currently 10 recognized models:

  • Comments
  • ExifMain
  • ExifAdvanced
  • ExifGPS
  • ExifMaker
  • ExifInterop
  • IPTC
  • XMP
  • GeoTiff
  • Animation

This method will return a tag in the following @FM delimited structure:

PosNameDescription
<1>KeyThe tag's key ID
<2>ValueThe tag's value
<3>DescriptionThe tag's description

To get a list of models stored in the image, use the GetMetaDataModels method. To get all tags for a model, use the GetMetaData method.

Example​

// Get the date and time from the EXIF model
Tag = Send_Message(@Window:".OLE_PICTURE", "OLE.GetMetaDataTag", "ExifMain", "DateTime")

See Also​

GetMetaDataModels, GetMetaData