Skip to main content

Number of GIF loops

Allows you to set the number of loops as follows:

  • null (or omitting in the CLI) plays the GIF indefinitely.
  • 0 disables looping
  • 1 loops the GIF once (plays twice in total)
  • 2 loops the GIF twice (plays three times in total) and so on.

CLI flag​

--number-of-gif-loops <value>

The following CLI commands accept this option:

APIs that have this option​

The following APIs accept this option:

Config file​

remotion.config.ts
Config.setNumberOfGifLoops(2);

See also​