facebook / facebook/fresco

GIFs do not load on v3.1.3

Open
#2,749 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### Description

After updating to Fresco's v3.1.3 release, we are no longer able to load GIF images into the app.

We had previously implemented a workaround to support GIFs (and other image types) while using Fresco v3.1.1, but setting all Fresco dependencies to 3.1.3 causes GIFs to not load.

Old Dependencies

```groovy
implementation('com.facebook.fresco:fresco:3.1.1')

implementation('com.facebook.fresco:animated-gif') {
because 'https://github.com/facebook/fresco/issues/2747'
version {
strictly '3.1.0'
}
}

// Additional Fresco dependencies omitted...
```

Updated Dependencies

```groovy
implementation('com.facebook.fresco:fresco:3.1.3')
implementation('com.facebook.fresco:animated-gif:3.1.3')
// Additional Fresco dependencies omitted...
```

| Before (Using 3.1.1 and GIF workaround) | After (3.1.3) |
|-----------------------------------------|-------------|
| https://github.com/facebook/fresco/assets/84779237/e8baf201-756a-42c3-aaeb-84b02a932dbb | https://github.com/facebook/fresco/assets/84779237/e568d411-0d01-418b-9d71-5b1068f5cb9d |

### Reproduction

* Use Fresco v3.1.3
* Attempt to load a [GIF](https://media.giphy.com/media/Lopx9eUi34rbq/giphy.gif) into an ImageView via Fresco

### Solution

* Repackage libraries?

### Additional Information

* Fresco version: 3.1.3
* Platform version: All - tested on Android 10-13

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.