# Single loop GIF's not looping as expected

**URL:** <https://community.prismic.io/t/single-loop-gifs-not-looping-as-expected/9168>\
**Category:** Developing with Prismic\
**Created:** [February 24, 2022, 12:20pm UTC](https://community.prismic.io/t/single-loop-gifs-not-looping-as-expected/9168 "2022-02-24T12:20:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.hek](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@alex.hek](https://community.prismic.io/u/alex.hek)\
**Post date:** [February 24, 2022, 12:20pm UTC](https://community.prismic.io/t/single-loop-gifs-not-looping-as-expected/9168/1 "2022-02-24T12:20:35Z")

</div>

![jyranians-big-tree-GIF-square](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/7/7b014b021bd884410ba82b9c868c6ce6646f318a.gif)

I've created this GIF that executes one loop and does not loop forever in the way that most GIF's do. These normally work as expected in code and have worked in the past using Prismic, however, I'm now finding that when I'm uploading these GIF's to the Prismic media library, that they are being converted to GIF's that are looping forever. Does anyone know a way around this? I'm resorting to using MP4's at the moment but it's not an ideal solution.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [February 24, 2022, 1:46pm UTC](https://community.prismic.io/t/single-loop-gifs-not-looping-as-expected/9168/2 "2022-02-24T13:46:52Z")

</div>

Hello @alex.hek. I'm not sure why this is happening and if it depends on Prismic or something else. I'll ask for opinions from the team. I'll share what we find asap.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [March 1, 2022, 7:08pm UTC](https://community.prismic.io/t/single-loop-gifs-not-looping-as-expected/9168/5 "2022-03-01T19:08:52Z")

</div>

Hello @alex.hek. We looked into this and it appears that AVIF (or at least, the technology that our Image Optimisation feature uses to create AVIFs) does not support any repetition settings yet, which is why `loop` doesn't work when it's set on Imgix side. We opened an issue on our end, and we'll also update our documentation. For now, we would recommend serving these as a GIF when `loop` is enabled.
