2

I would like to use WebP format to animate GIFs as the alternative to native GIF format or MP4, but I have no clue how to actually decode it in Android and show it in the view.

The Giphy app could be used as the reference. I would like to achieve similar result with the webp animation.

I found a 3rd party library - Fresco (Facebook). It provides a view for the animation as well as animates it. But this library increases the build size by several(!) megabytes.

Does anybody have a solution or suggestion how to display the animated WebP animation on native Android (not in WebView)?

Thanks in advance!

Edward Foux
  • 21
  • 1
  • 2
  • 1
    The RedReader app has a custom implementation of a gif player, its open source so you can see it here https://github.com/QuantumBadger/RedReader/blob/master/src/main/java/jp/tomorrowkey/android/gifplayer/GifDecoder.java – Daniel Mendel Sep 03 '15 at 21:04

1 Answers1

1

The "several" megabytes of Fresco become one megabyte if you ship separate APKs for different CPUs. See the instructions.

tyronen
  • 2,558
  • 1
  • 11
  • 15