GetMetaData Method
Gets all metadata stored in the image for a specific model.
Definition
Metadata = GetMetaData(Model)
Parameters
| Parameter | Description |
|---|---|
| Model | The 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:
| Pos | Name | Description |
|---|---|---|
| <1, 1> | Key | The tag's key ID |
| <1, 2> | Value | The tag's value |
| <1, 3> | Description | The 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")