GMImage.GetFileName
-------------------

Queries the Image file name.

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

MBS( "GMImage.GetFileName"; ImageRef ) 

**MBS**( **"GMImage.GetFileName";** /\* Queries the Image file name. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a string.

### Description

Queries the Image file name.  
### See also

- [GMImage.BaseFilename](GMImageBaseFilename.md)
- [GMImage.GetFileSize](GMImageGetFileSize.md)
- [GMImage.GetFillRule](GMImageGetFillRule.md)
- [GMImage.GetFilterType](GMImageGetFilterType.md)
- [GMImage.GetTileName](GMImageGetTileName.md)
- [GMImage.SetFileName](GMImageSetFileName.md)
- [GMImage.SetFillRule](GMImageSetFillRule.md)
- [GMImage.SetTileName](GMImageSetTileName.md)

### Blog Entries

- [GraphicsMagick in FileMaker, part 2](https://www.mbsplugins.de/archive/2022-12-02/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[GMImage.GetEndian](GMImageGetEndian.md) - [GMImage.GetFileSize](GMImageGetFileSize.md)

[HTML Version](GMImageGetFileName.shtml)