GMImage.GetFileSize
-------------------

Returns the number of bytes of the image on disk

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

MBS( "GMImage.GetFileSize"; ImageRef ) 

**MBS**( **"GMImage.GetFileSize";** /\* Returns the number of bytes of the image on disk \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns a number.

### Description

Returns the number of bytes of the image on disk  
### See also

- [GMImage.GetFileName](GMImageGetFileName.md)
- [GMImage.GetFillRule](GMImageGetFillRule.md)
- [GMImage.GetFilterType](GMImageGetFilterType.md)
- [GMImage.GetSize](GMImageGetSize.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.GetFileName](GMImageGetFileName.md) - [GMImage.GetFillColor](GMImageGetFillColor.md)

[HTML Version](GMImageGetFileSize.shtml)