# Loading a GIF in Processing

**URL:** <https://discourse.processing.org/t/loading-a-gif-in-processing/23020>\
**Category:** Libraries\
**Created:** [August 3, 2020, 5:39pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020 "2020-08-03T17:39:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Post date:** [August 3, 2020, 5:39pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/1 "2020-08-03T17:39:28Z")

</div>

So I need to display a couple of gifs in my sketch, I searched at google a bit, what I found:

- This example: [Animated Sprite (Shifty + Teddy) / Examples / Processing.org](https://processing.org/examples/animatedsprite.html) which doesnt halp me, I need to load a gif; not make one (this would actually be okay for my use but it is dependant on frameRate() ),

- gifAnimation library seems perfect for me but it is not compatible with the current version,

- Image Sequence Player library also doesnt help since it is similar to the processing website example

Is there a newer library that can load gif files? If not how can I load gif files? Or I can also try making a class like in the website example but one that doesnt depend on framerate.

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [August 4, 2020, 12:45pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/2 "2020-08-04T12:45:55Z")

</div>

Built in function [loadImage()](https://processing.org/reference/loadImage_.html) supports also gifs. Is there a reason you cannot use it?

---

<div class="post-metadata">

**Author:** ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Post date:** [August 4, 2020, 1:08pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/3 "2020-08-04T13:08:50Z")

</div>

It only shows the first frame of a gif as a static image. I want to import the gif as an animation.

---

<div class="post-metadata">

**Author:** ![FrankieDes](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@FrankieDes](https://discourse.processing.org/u/FrankieDes)\
**Post date:** [April 1, 2024, 12:17am UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/4 "2024-04-01T00:17:07Z")

</div>

Hey, having the same problem, did you ever figure it out?

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [April 8, 2024, 9:25am UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/5 "2024-04-08T09:25:23Z")

</div>

Hi @FrankieDes,

why not just using GifAnimation library from Contribution Manager ?

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![zlfp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/zlfp/32/19543_2.png) [@zlfp](https://discourse.processing.org/u/zlfp)\
**Post date:** [April 8, 2024, 2:58pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/6 "2024-04-08T14:58:05Z")

</div>

mnse

he says `gifAnimation` is dont work with he version

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [April 8, 2024, 3:04pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/7 "2024-04-08T15:04:20Z")

</div>

> [@zlfp](#):
>
> he says `gifAnimation` is dont work with he version

That was 4 years ago. The current version of this library works just fine in Processing 4.3

---

<div class="post-metadata">

**Author:** ![zlfp](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/zlfp/32/19543_2.png) [@zlfp](https://discourse.processing.org/u/zlfp)\
**Post date:** [April 8, 2024, 3:09pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/8 "2024-04-08T15:09:39Z")

</div>

im about [GitHub - extrapixel/gif-animation: GifAnimation is a Processing library to play and export GIF animations](https://github.com/extrapixel/gif-animation), are he about another lib? (p.s. it dont work me too)

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [April 8, 2024, 3:22pm UTC](https://discourse.processing.org/t/loading-a-gif-in-processing/23020/9 "2024-04-08T15:22:12Z")

</div>

That is an old repository the current one for GifAnimation 3.0.0 is [here](https://github.com/akiljohnson1/GifAnimation/blob/master/library.properties)
