# GIF doesn't do the full loop

**URL:** <https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947>\
**Category:** Ask for Help\
**Created:** [August 25, 2021, 6:22pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947 "2021-08-25T18:22:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_Rodriguez\_do](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manuel_rodriguez_do/32/16448_2.png) [@Manuel\_Rodriguez\_do](https://community.glideapps.com/u/Manuel_Rodriguez_do)\
**Post date:** [August 25, 2021, 6:22pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/1 "2021-08-25T18:22:58Z")

</div>

Hi,  
I am trying to use a GIF as an image and i have noticed that Glide cuts the gif full duration.

 ![Screenshot 2021-08-25 at 19.22.35](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/3/c39211971e98c923a4a65ad70ddee9710104eb24.png)

I tried to use a GIF with a countdown [like this one](https://lottiefiles.com/7820-15-sec) and in Glide it gets cut at 7 seconds and goes back to the beginning. I tried storing the file directly in Glide and storing it in firebase. The problem persists.

Does anyone knows why this happens and if there is a way for the gif to do the full cycle?

---

<div class="post-metadata">

**Author:** ![Manuel\_Rodriguez\_do](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manuel_rodriguez_do/32/16448_2.png) [@Manuel\_Rodriguez\_do](https://community.glideapps.com/u/Manuel_Rodriguez_do)\
**Post date:** [August 25, 2021, 6:49pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/2 "2021-08-25T18:49:43Z")

</div>

When I inspect the GIF I uploaded to the app after it is published i noticed that the GIF effectively used is a compressed form and that all the GIF’s **are cut at 7140 milliseconds**.

I understand the compression but the cut part doesn’t make much sense and turns unusable longer GIFs. Is there anyway to use GIF’s that are not cut at 7140 milliseconds? @david @Mark

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 25, 2021, 6:53pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/3 "2021-08-25T18:53:47Z")

</div>

Try referencing the image directly with html img tags in a rich text component.

---

<div class="post-metadata">

**Author:** ![Manuel\_Rodriguez\_do](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manuel_rodriguez_do/32/16448_2.png) [@Manuel\_Rodriguez\_do](https://community.glideapps.com/u/Manuel_Rodriguez_do)\
**Post date:** [August 25, 2021, 7:00pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/4 "2021-08-25T19:00:00Z")

</div>

Ok, that works. So all the image size and position has to be done in HTML in this case. I also tried using a giphy as a link and that one isnt’t cut (although firebase is)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 25, 2021, 7:08pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/5 "2021-08-25T19:08:38Z")

</div>

Glide aggressively caches and compresses images to show the most optimized version for quick loading depending on the OS/Browser, and which screen view or components you are using. Maybe giphy works because glide can’t directly cache and compress it. I suppose the same happens with GIF images, but by using the img tags, the browser is making direct requests for the full uncompressed image version.

---

<div class="post-metadata">

**Author:** ![Manuel\_Rodriguez\_do](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manuel_rodriguez_do/32/16448_2.png) [@Manuel\_Rodriguez\_do](https://community.glideapps.com/u/Manuel_Rodriguez_do)\
**Post date:** [August 25, 2021, 7:12pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/6 "2021-08-25T19:12:01Z")

</div>

And is it possible to use Lottie files direclty in HTML (not exporting a GIF)?  
Like this one [Lottie Web Player - Lottiefiles](https://lottiefiles.com/web-player?lottie_url=https%3A%2F%2Fassets6.lottiefiles.com%2Fpackages%2Flf20_I0lJNs.json)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 25, 2021, 7:23pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/7 "2021-08-25T19:23:14Z")

</div>

Not sure. Not familiar with them, but looking over the site quickly, it may require a web view or a third party site with the necessary code to play a Lottie file and is displayed in a web view.

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:50pm UTC](https://community.glideapps.com/t/gif-doesnt-do-the-full-loop/30947/8 "2024-01-17T16:50:51Z")

</div>


