Display image from sd card


i want to display image from sd card. display size is 480 * 320 px. i want display three image 80 * 80 px image size. so i want to know how can i do that.

What MCU/Processor/Board and compiler are you using?

software is Arduino, mcu is esp32-sc

What LVGL version are you using?

latest version

What do you want to achieve?

i want display 3 image of size 80 * 80 px each from sd card on display 480 * 320 px spi display. image format any from these bin,bmp, jpg, png etc.

What have you tried so far?

i have enabled FATFS in lv_config.h and image decoder try with all format. but error is DIR error. so what should i do.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.


I think using a bin image is the simplest. See the description about the file system here.

Please also verify that you can open the bin file directly using lv_fs_open.