Issue displaying PNG image from SPIFFS – decoding integration problem (not filesystem)

Hi everyone,

I’m trying to display a PNG image stored in SPIFFS using LVGL (v9.2.0) on an ESP32-S3. The PNG file is accessible — I can open it from SPIFFS with no issue, so the filesystem is working correctly.

However, the image doesn’t show up on the screen when I try to display it using the LVGL image widget with a PNG decoder (lodepng). It seems the problem is not related to file access, but rather to the integration between LVGL and the PNG decoding/display logic. The image object stays blank, and nothing is rendered.

Has anyone successfully used PNGs from SPIFFS with LVGL?
Any guidance or example would be appreciated!

Let me know if you need more details — I can share code or logs.

Thanks!

there is not need to integrate LVGL ↔ PNG decoding, png decoding supported via 3-party libraries integrated in lvgl sources. the problem in integration of file access ↔ LVGL.
maybe you can find some info here and here
Possible using of Arduino ESP LITTLEFS can help you
The main problem is LVGL doesn’t know how to access files on SPIFFS

Thank you for your help !
i used posix and lodepng → now i can access png file on spiffs partition ( b i am using esp idf 5.4.1 and not arduino) and display it on an rgb565 display !