# Export .GIF file

**URL:** <https://discourse.processing.org/t/export-gif-file/43613>\
**Category:** Processing.py\
**Created:** [January 3, 2024, 8:26pm UTC](https://discourse.processing.org/t/export-gif-file/43613 "2024-01-03T20:26:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 4, 2024, 5:46pm UTC](https://discourse.processing.org/t/export-gif-file/43613/4 "2024-01-04T17:46:34Z")

</div>

Function [**saveGif()**](https://p5js.org/reference/#/p5/saveGif) is a exclusive p5\*js API feature.

But if you’re on P3, there’s this library we can install from “Contribution Manager” called GifAnimation, which has a [GifMaker](https://github.com/extrapixel/gif-animation/blob/3.0/gifAnimation/src/GifMaker.java) class:

> **[GitHub - extrapixel/gif-animation: GifAnimation is a Processing library to...](https://github.com/extrapixel/gif-animation)**
>
> GifAnimation is a Processing library to play and export GIF animations - GitHub - extrapixel/gif-animation: GifAnimation is a Processing library to play and export GIF animations

Once installed, I believe it can be imported on Python Mode like this:

```python
add_library('gifAnimation')
from gifAnimation import GifMaker

```

Maybe the explicit `from gifAnimation import GifMaker` isn’t needed, just `add_library('gifAnimation')` would be enough.

You can also try out PyScript + p5\*js if somehow GifAnimation doesn’t work for you:

> [@Animated random boxes in p5.js & python](https://discourse.processing.org/t/animated-random-boxes-in-p5-js-python/43612/2):
>
> You can use [PyScript](https://pyscript.net/) to write code in Processing’s [p5\*js](https://p5js.org/reference/) or [pjs](https://gotoloop.github.io/processing-js.github.io/reference/) flavors using [Python](https://www.python.org/) syntax! snake Take a look at some of my PyScript sketches to see how to do it: [PyScript](https://pyscript.com/@gotoloop) eyeglasses

---

_[View the full topic](https://discourse.processing.org/t/export-gif-file/43613)._
