facebook / fresco

An Android library for managing images and the memory they use.
https://frescolib.org/
MIT License
17.07k stars 3.75k forks source link

Question: Lottie vs Animated WebP #2591

Open HugoGresse opened 3 years ago

HugoGresse commented 3 years ago

Description

I've a fancy new small animation (70ko webP) to add to my mobile app in React Native for android & iOS.

I've two choices: use WebP or Lottie. However, I'm totally blind regarding the footprint of each lib (fresco webp support + animated-webp vs lottie-react-native), and the power consumption for a given animation. I understand that Lottie is more flexible and smaller in asset size, but what about the rest? Do you have insight as Fresco maintainers?

https://user-images.githubusercontent.com/662377/112168154-56870300-8bf1-11eb-939b-83b638743bd4.mp4

Additional Information

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.

bhupali-sharechat commented 2 years ago

Hey @HugoGresse what did you end up using?

HugoGresse commented 2 years ago

As the animation is very basic, using a regular gif was enough, no need for an extra dependencies. the size is 88ko :/