lvgl / lv_lib_png

PNG decoder for LVGL
MIT License
67 stars 26 forks source link

Does APNG support? #8

Closed guoweilkd closed 3 years ago

embeddedt commented 3 years ago

I don't think lodepng (the underlying decoder being used) supports APNG. If you want animations I would suggest looking into https://github.com/lvgl/lv_lib_gif.

embeddedt commented 3 years ago

It looks like APNG is an extension of PNG, so the first frame will probably display fine. However, there is no mechanism I know of to get lodepng to display the next frame.

guoweilkd commented 3 years ago

I use libpng+apng patch to implement APNG in LVGL. https://github.com/guoweilkd/lv_lib_apng How to add it to lvgl Repo.

kisvegabor commented 3 years ago

Happy to hear that you could make it work!

In this repo are using lodepng as png lib but it seems you are using a different one.

Could you send a PR with the changes? We can merge it into a new branch and if it's better than the current lodepng lib we can replace it with yours.