GMImage.GetAttributeNames
-------------------------

Queries names of all attributes.

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

MBS( "GMImage.GetAttributeNames"; ImageRef ) 

**MBS**( **"GMImage.GetAttributeNames";** /\* Queries names of all attributes. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns list or error.

### Description

Queries names of all attributes.  
Only attributes created before are visible, so e.g. EXIF data may not yet be loaded and parsed.  
### Examples

Show attributes:

 Set Variable \[ $ImageRef ; Value: MBS ("[GMImage.NewFromFile](GMImageNewFromFile.md)"; "/Users/cs/Desktop/image2.png") \]   
Show Custom Dialog \[ "Attributes" ; MBS ( "GMImage.GetAttributeNames"; $ImageRef ) \]   
Set Variable \[ $r ; Value: MBS ("[GMImage.Release](GMImageRelease.md)"; $ImageRef ) \]  
### See also

- [GMImage.GetAttribute](GMImageGetAttribute.md)
- [GMImage.GetAttributesJSON](GMImageGetAttributesJSON.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.NewFromFile](GMImageNewFromFile.md)
- [GMImage.Release](GMImageRelease.md)

### Release notes

- **Version 9.2**
    - Added [GMImage.GetAttributeNames](http://www.mbsplugins.eu/GMImageGetAttributeNames.shtml) and [GMImage.GetAttributesJSON](http://www.mbsplugins.eu/GMImageGetAttributesJSON.shtml) functions.

### Blog Entries

- [GraphicsMagick in FileMaker, part 19](https://www.mbsplugins.de/archive/2022-12-19/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [Was gibt es neues bei MBS Version 9.2](https://www.mbsplugins.de/archive/2019-07-16/Was_gibt_es_neues_bei_MBS_Vers/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.2pr4](https://www.mbsplugins.de/archive/2019-04-25/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th April 2019 , last changed 18th April 2019

  
[GMImage.GetAttribute](GMImageGetAttribute.md) - [GMImage.GetAttributesJSON](GMImageGetAttributesJSON.md)

[HTML Version](GMImageGetAttributeNames.shtml)