GMImage.SetAnimationIterations
------------------------------

Sets the Number of iterations to loop an animation (e.g. Netscape loop extension) for.

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

MBS( "GMImage.SetAnimationIterations"; ImageRef; iterations ) 

**MBS**( **"GMImage.SetAnimationIterations";** /\* Sets the Number of iterations to loop an animation (e.g. Netscape loop extension) for. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$iterations**) /\* the Number of iterations to loop an animation fore.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| iterations | the Number of iterations to loop an animation for | 10 |

### Result

Returns "OK" on success.

### Description

Sets the Number of iterations to loop an animation (e.g. Netscape loop extension) for.  
### See also

- [GMImage.GetAnimationIterations](GMImageGetAnimationIterations.md)

### Example Databases

- [GraphicsMagick/Create GIF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Create%20GIF.shtml#1ScriptAnchor_)

This function checks for a license.

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

  
[GMImage.SetAnimationDelay](GMImageSetAnimationDelay.md) - [GMImage.SetAntiAlias](GMImageSetAntiAlias.md)

[HTML Version](GMImageSetAnimationIterations.shtml)