lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
54 stars 38 forks source link

Problem with image converter #11

Closed Polarisru closed 5 years ago

Polarisru commented 5 years ago

Hello, I have just tried the image converter to get a logo picture with a lot of white background and was very disappointed, the generated c array was wrong. I have tried different image formats (png, bmp) from different software tools (Paint.net, XNView) but without success. As I mentioned, the picture has a lot of white background, but the generated array was full of 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, ... I have used 16 bit color depth, so it seems more to be black. And it was also displayed as a black rectangle. I have tried to put some 0xff, 0xff to the generated array and got the right result - white color for the corrected area. Probably it is something wrong with the converter. I have taken a look at the source code, may be it cann't convert bitmaps with 32 bits color encoding? Just guessing.

kisvegabor commented 5 years ago

Hi,

Please attach an image which was not working.

stale[bot] commented 5 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.