Image converter colors are wrong

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):

traffix_logo

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?

Mystery solved - I had to set CONFIG_LV_COLOR_16_SWAP.

I am still not sure how to interpret the color formats in the generated files though. In this table:

  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*/

my best guess is that the order of the elements is BGRA but I can find no documentation on that.