How to show .png file and use the SD Card #459
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Check below comments from documentation. Your image might be too large, you might not have the PSram or the png is not in a correct format: Either PNG or BIN image files are supported, from flash: |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your replies. I needed some time to check the hints you provided. Hi @adorobis, I just tested the LVL converted and created the bin file as you suggested. It works! But as you know, handling bin files is very limited specially in relation to autosize functions. So I would like to check whether .png files are possible to be read. The Board is a Sunton ESP32-3248S035C (with Capacitive Touch). Link in AliExpress Sunton Board. According to the documentation, which is not specific to this capacitive model, there is a 520KB SRAM and 4MB Flash. Unfortunately the result is the same as shown above. |
Beta Was this translation helpful? Give feedback.
Check below comments from documentation. Your image might be too large, you might not have the PSram or the png is not in a correct format:
Either PNG or BIN image files are supported, from flash:
PNG image are decoded and kept in memory, thus you'll be able to display full-screen images only if your microcontroller has installed PSram memory, else you will be limited to small icons or BIN files.
BIN images are not stored in memory and are read from flash each time. This will be slower but allows the use of larger images even if your microcontroller doesn't have PSram.
BIN images from flash do not support zoom or angle transformations.
Use the online LVGL Image Converter to create BIN fil…