GMImage.GetXMP
--------------

Query XMP data.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.GetXMP"; ImageRef ) 

**MBS**( **"GMImage.GetXMP";** /\* Query XMP data. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |

### Result

Returns XML text or error.

### Description

Query XMP data.  
XMP data is a XML file with a given structure.  
You can easily use the [XML.Query](XMLQuery.md) function to get values.  
### Examples

Query XMP data from image:

 Set Variable \[$img ; Value: MBS ( "[GMImage.NewImagesFromFile](GMImageNewImagesFromFile.md)"; "/Users/cs/Desktop/test.tif" )\]  
Set Variable \[$xmp ; Value: MBS ( "GMImage.GetXMP"; $img )\]  
Set Variable \[$r ; Value: MBS ( "[GMImage.Release](GMImageRelease.md)"; $img )\]  
### See also

- [GMImage.GetFont](GMImageGetFont.md)
- [GMImage.GetPage](GMImageGetPage.md)
- [GMImage.GetSize](GMImageGetSize.md)
- [GMImage.GetType](GMImageGetType.md)
- [GMImage.GetView](GMImageGetView.md)
- [GMImage.GetZPL](GMImageGetZPL.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.Ping](GMImagePing.md)
- [GMImage.PingContainer](GMImagePingContainer.md)
- [XML.Query](XMLQuery.md)

### Blog Entries

- [MBS FileMaker Plugin 6.3 for OS X/Windows](https://www.mbsplugins.de/archive/2016-07-12/MBS_FileMaker_Plugin_63_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr2](https://www.mbsplugins.de/archive/2016-06-10/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th June 2016 , last changed 16th December 2020

  
[GMImage.GetWidth](GMImageGetWidth.md) - [GMImage.GetZPL](GMImageGetZPL.md)

[HTML Version](GMImageGetXMP.shtml)