Open HonestQiao opened 1 year ago
I'm not sure it's related but ESP32S3 is not officially supported by lv_micropython. Did you try to reproduce this problem in C? It's not clear to me if it's Micropython bindings issue of LVGL issue
Hello!
There is a bug in LVGL lv_sjpg.c
file, the problem is the color format:
https://github.com/lvgl/lvgl/issues/4407#issuecomment-1655861234
@amirgon , The JPEG color format issue will be fixed by PR https://github.com/lvgl/lvgl/pull/4473 But please do not update LVGL library in binding yet, as there is another bug in JPEG rendering: https://github.com/lvgl/lvgl/issues/4407#issuecomment-1685254748
the call to JPEG decoder is removed in the parallel rendering architecture commit: https://github.com/lvgl/lvgl/commit/f753265a799bdd910881238cb36f8d731f6d8727#diff-90f14ebcd1b2e071c69ef3ad4020cb675f2484b26db670b0e455b1aec6cabdb0L78
My device: ESP32-S3-Box-Lite (N16R8V) + Display: ST7789 MycroPython: MicroPython v1.20.0-698-g3f25a765d on 2023-06-28; ESP32S3 Box Lite (spiram octal) with ESP32S3
My code:
If I use "S:/images/zt_cover.png" for cover_img.set_src(), the image will be displayed.![zt_cover.png](https://github.com/lvgl/lv_binding_micropython/assets/696708/eac9da00-e5b9-4f61-b9da-8e2fb1a9d0c2)
If I use "S:/images/zt_cover.jpg" for cover_img.set_src(), the image wont be displayed. No error, only empty. zt_cover.jpg is convert from zt_cover.png.![zt_cover.jpg](https://github.com/lvgl/lv_binding_micropython/assets/696708/738ea03e-2f52-4a48-b5fd-a96f4114ee8d)
I tried to use ./lib/lv_bindings/lvgl/scripts/jpg_to_sjpg.py to convert zt_cover.jpg to zt_cover.sjpg, but zt_cover.sjpg can't be displayed either.
In ./lib/lv_bindings/lv_conf.h, LV_USE_SJPG is open:
What is the problem?