GMImage.GetHeight
-----------------

Returns the image height.

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

MBS( "GMImage.GetHeight"; ImageRef ) 

**MBS**( **"GMImage.GetHeight";** /\* Returns the image height. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

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

### Result

Returns the image height.

### Description

Returns the image height.  
### Examples

Show with and height

 Let ( \[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$Width = MBS ("[GMImage.GetWidth](GMImageGetWidth.md)";$Image );   
$Height = MBS ("GMImage.GetHeight";$Image );   
$Error = MBS ("[GMImage.Release](GMImageRelease.md)";$Image )  
\];   
$Width &amp; " x " &amp; $Height )  
Query size of image into $h and $w:

 Set Variable \[ $Image ; Value: MBS ( "[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; ImageView::ImageContainer ) \]   
Set Variable \[ $w ; Value: MBS ( "[GMImage.GetWidth](GMImageGetWidth.md)"; $Image ) \]   
Set Variable \[ $h ; Value: MBS ( "GMImage.GetHeight"; $Image ) \]   
Set Variable \[ $r ; Value: MBS ( "[GMImage.Release](GMImageRelease.md)"; $Image ) \]  
### See also

- [GMImage.GetDensity](GMImageGetDensity.md)
- [GMImage.GetDepth](GMImageGetDepth.md)
- [GMImage.GetQuiet](GMImageGetQuiet.md)
- [GMImage.GetWidth](GMImageGetWidth.md)
- [GMImage.Ping](GMImagePing.md)
- [GMImage.PingContainer](GMImagePingContainer.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.SetPixelColor](GMImageSetPixelColor.md)
- [ImageView.CreateWithControl](ImageViewCreateWithControl.md)
- [XL.Sheet.SetPictureWithSize](XLSheetSetPictureWithSize.md)

### Example Databases

- [Barcode/Barcode Generation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Barcode%20Generation.shtml#3ScriptAnchor_)
- [Barcode/Swiss QR-Code for invoices/Swiss QR-Code for invoices ISO 20022](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Barcode/Swiss%20QR-Code%20for%20invoices/Swiss%20QR-Code%20for%20invoices%20ISO%2020022.shtml#18ScriptAnchor_)
- [GraphicsMagick/Apply Mask](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Apply%20Mask.shtml#1ScriptAnchor_)
- [GraphicsMagick/Clip Image](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Clip%20Image.shtml#1ScriptAnchor_)
- [GraphicsMagick/Combine Pictures](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Combine%20Pictures.shtml#1ScriptAnchor_)
- [GraphicsMagick/GraphicsMagick Sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Sample.shtml#1ScriptAnchor_)
- [GraphicsMagick/Image Croping](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Image%20Croping.shtml#1ScriptAnchor_)
- [GraphicsMagick/Reduce Image](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Reduce%20Image.shtml#1ScriptAnchor_)
- [Mac and iOS/ImageView](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/ImageView.shtml#1ScriptAnchor_)
- [Mac and iOS/Machine Learning/Core Image Detection](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Machine%20Learning/Core%20Image%20Detection.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 16 - GraphicsMagick](https://www.mbsplugins.de/archive/2023-12-16/MBS_Plugin_Advent_calendar_16_/monkeybreadsoftware_blog_filemaker)
- [Tips and tricks with MBS](https://www.mbsplugins.de/archive/2023-08-10/Tips_and_tricks_with_MBS/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 24](https://www.mbsplugins.de/archive/2022-12-24/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 7](https://www.mbsplugins.de/archive/2022-12-07/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 2](https://www.mbsplugins.de/archive/2022-12-02/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [Create PDF from scanned images and skip blank pages](https://www.mbsplugins.de/archive/2019-03-13/Create_PDF_from_scanned_images/monkeybreadsoftware_blog_filemaker)
- [Circle crop images in FileMaker with MBS Plugin](https://www.mbsplugins.de/archive/2018-01-18/Circle_crop_images_in_FileMake/monkeybreadsoftware_blog_filemaker)
- [Face detection via CoreImage in FileMaker](https://www.mbsplugins.de/archive/2017-07-23/Face_detection_via_CoreImage_i/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 37](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)
- [Ausgabe 5/2011, Seite 32](https://filemaker-magazin.de/neuigkeit/3506-Appetithappen-FMM_201105-06)

This function checks for a license.

Created 18th August 2014 , last changed 21st December 2018

  
[GMImage.GetGifDisposeMethod](GMImageGetGifDisposeMethod.md) - [GMImage.GetICCColorProfile](GMImageGetICCColorProfile.md)

[HTML Version](GMImageGetHeight.shtml)