To handle non-built-in image formats, you need to use external libraries and attach them to LVGL via the Image decoder interface.
LVGL cannot directly work with image files like JPG or PNG, these image files have to be decoded first:
IMAGE DECODER
As you can see in the Color formats section, LVGL supports several built-in image formats. In many cases, these will be all you need. LVGL doesn’t directly support, however, generic image formats like PNG or JPG.
To handle non-built-in image formats, you need to use external libraries and attach them to LVGL via the Image decoder interface.
See the image decoder section! For this you will need some sort of JPG (or whatever) decoder, if you’re lucky, whatever MCU you use, has specialized hardware for this… otherwise it’s very slow.