Closed haseebrabbani closed 7 years ago
Is transforming sequence of pngs into single animated webp image an option here ? Note that you would probably save a lot of bytes this way. There is no support for assembing animations from multiple frames right now.
Is there a recommended tool for converting PNG sequences into animated WebP files?
The only tool that comes to mind is ImageMagick. You'll have to convert the frames to an animation (gif or webp) before sending it to your app. I don't know if it's possible to use ImageMagick to convert the png frames to an animation in android
So I've got the GIF animation. How can I tell Fresco to only play it once? I see the anim.start()/stop() methods, but is there a way to tell Fresco to just play an animation once and then stop?
I don't think there's an api call in frasco for that. If you're using ImageMagick to build the gif, I do know that it has a -loop flag. You can try that to set it to play only once using -loop 1
It seems like GifImage#getLoopCount
is never used to limit the loop times...
The loop count specified in the GIF image should be respected. If that's not the case then it is a bug.
The bug is tracked separately in #180
Cleaning up old issues
Hi, I am trying to determine the viability of Fresco for the animations in my app. I have PNG sequences for each animation which are included as drawable resources in my project (one PNG per frame named as frame_1.png, frame_2.png, etc...). My question is: how can I get Fresco to animate these frames for me in a SimpleDraweeView? Does it currently support this functionality?