I am trying to convert an image using the online image converter, or the offline version and in both cases the colors are wrong. Here is my PNG image (I have tried starting from JPG and the result is the same):
The image as displayed on the LCD is this:
And if I examine the generated C source none of the colors resemble the original blue (this is using LV_IMG_CF_INDEXED_2BIT but the result is similar for any format.)
0x00, 0x00, 0x00, 0x00, /*Color of index 0*/
0xf8, 0x85, 0x77, 0x4b, /*Color of index 1*/
0xf2, 0x2f, 0x15, 0xfc, /*Color of index 2*/
0xfe, 0xfa, 0xfa, 0xff, /*Color of index 3*/
If I edit the C file and change the middle two colors to blue (i.e. 0x0, 0x0, 0xff, 0xff
), then I get a result resembling what I expect, so the problem is arising in the conversion, not the display of the image.
I have tried different color formats with the same result.
Any ideas, or is the tool just broken?