GMImage.GetAnimationIterations
------------------------------

Queries 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.GetAnimationIterations"; ImageRef ) 

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

### Parameters

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

### Result

Returns the Number of iterations to loop an animation for.

### Description

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

- [GMImage.SetAnimationIterations](GMImageSetAnimationIterations.md)

This function checks for a license.

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

  
[GMImage.GetAnimationDelay](GMImageGetAnimationDelay.md) - [GMImage.GetAntiAlias](GMImageGetAntiAlias.md)

[HTML Version](GMImageGetAnimationIterations.shtml)