GMImage.Blur
------------

Blur image with specified blur factor.

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

MBS( "GMImage.Blur"; ImageRef { ; Radius; sigma } ) 

**MBS**( **"GMImage.Blur";** /\* Blur image with specified blur factor. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Radius**; /\* Optional; Optional, The radius of the Gaussian, in pixels, not counting the center pixel.e.g. 0 \*/   
**$sigma**) /\* Optional; Optional, The standard deviation of the Laplacian, in pixels.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 |  |
| Radius | Optional, The radius of the Gaussian, in pixels, not counting the center pixel. | 0 | Optional |
| sigma | Optional, The standard deviation of the Laplacian, in pixels. | 1 | Optional |

### Result

Returns "OK" on success.

### Description

Blur image with specified blur factor.  
### Examples

Blurs image

 Let (   
\[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$RotateResult = MBS ("GMImage.Blur"; $Image ; 10; 5);   
$Result = MBS ("[GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)"; $Image );   
$DestroyResult = MBS ("[GMImage.Release](GMImageRelease.md)";$Image )  
\];   
$Result )  
### See also

- [GMImage.Flip](GMImageFlip.md)
- [GMImage.Flop](GMImageFlop.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.NewFromContainer](GMImageNewFromContainer.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)

### Example Databases

- [GraphicsMagick/Annotate Image](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Annotate%20Image.shtml#5ScriptAnchor_)
- [GraphicsMagick/GraphicsMagick Sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Sample.shtml#3ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 16 - GraphicsMagick](https://www.mbsplugins.de/archive/2023-12-16/MBS_Plugin_Advent_calendar_16_/monkeybreadsoftware_blog_filemaker)
- [GraphicsMagick in FileMaker, part 14](https://www.mbsplugins.de/archive/2022-12-14/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[GMImage.BaseRows](GMImageBaseRows.md) - [GMImage.BlurChannel](GMImageBlurChannel.md)

[HTML Version](GMImageBlur.shtml)