Skip to main content

GetMetaData Method

Gets all metadata stored in the image for a specific model.

Definition​

Metadata = GetMetaData(Model)

Parameters​

ParameterDescription
ModelThe model/category of metadata to get

Returns​

@FM list of all metadata tags

Remarks​

The GetMetaData method gets all metadata tags associated with the 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 an @FM delimited list of tags. Each tag has the following @VM delimited structure:

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

To get a list of models stored in the image, use the GetMetaDataModels method. To get a single tag, use the GetMetaDataTag method.

Example​

// Get the meta data for the first model
Models = Send_Message(@Window:".OLE_PICTURE", "OLE.GetMetaDataModels")
Tags = Send_Message(@Window:".OLE_PICTURE", "OLE.GetMetaData", Models<1>)

// Explicitely get all tags from the Comments model
Tags = Send_Message(@Window:".OLE_PICTURE", "OLE.GetMetaData", "Comments")

See Also​

GetMetaDataModels, GetMetaDataTag