lvgl / lv_img_conv

Image converter for LVGL, written in JS
https://lvgl.github.io/lv_img_conv/
Other
89 stars 42 forks source link

GIFs will be converted to LV_IMG_CF_RAW_CHROMA_KEYED format #28

Closed HaoboGu closed 1 year ago

HaoboGu commented 1 year ago

Hello, I'm using online converter converting gifs to c array. But the converted c file cannot be displayed with lvgl. I notice that the .header.cf field is LV_IMG_CF_RAW_CHROMA_KEYED, not LV_IMG_CF_RAW. Is this a bug for converting gifs?

I tried this gif c array, it can be displayed perfectly. So it's not a problem of lvgl itself.

embeddedt commented 1 year ago

The original PHP converter didn't seem to distinguish between images with and without chroma keying, which is why the new converter outputs a chroma keyed header instead of a raw header.

Does it work when you replace the header with LV_IMG_CF_RAW?

HaoboGu commented 1 year ago

Thanks for the reply! I addressed the problem by increasing the mem size. Not the converter's issue, closing this.