lv_lib_png icon indicating copy to clipboard operation
lv_lib_png copied to clipboard

can't display the png img in vs2019 simulator

Open banshanju opened this issue 4 years ago • 2 comments

I use LVGL's file system API, it work fine when i transform the img to bin file,but when i open png file directly,it display “nodata”.

I Initalize the decocer with lv_png_init() and add #define LV_PNG_USE_LV_FILESYSTEM 1.

It printf: ERROR 48:empty input buffer given to decoder. Maybe caused by non-existing file?

banshanju avatar Nov 06 '20 03:11 banshanju

Hi,

Have you tried to open this example file? lv_img_set_src(img, "P:lv_lib_lodepng/png_decoder_test.png");

If so have you placed lv_lib_lodepng to the root folder of the project?

Can you "manually" open the file with lv_fs_open?

kisvegabor avatar Nov 08 '20 10:11 kisvegabor

Yes, I placed lv_lib_lodepng to the root folder of the project, and try the example. I will try to manually open the file with lv_fs_open, thank you!

banshanju avatar Nov 09 '20 02:11 banshanju