GIFs using LVGL

Description

I am trying to show a GIF on a display using LVGL. but the screen is always white.

What MCU/Processor/Board and compiler are you using?

ESP32 and ESP32S3

What LVGL version are you using?

LVGL V8.0.2

What do you want to achieve?

show a GIF on a display

What have you tried so far?

  1. Made LVGL run on the ESP32 and displayed a widget without any issues
  2. Downloaded 2 GIFs. 1 from the LVGL example page for gifs and one from google
  3. converted both Gifs using the online LVGL image converter as well as cloning the image converter git repo. So i was with 4 C array files. 2 converted with online tool and other 2 with the git repo version. (I have selected the RAW format just like the example suggested)
  4. followed the instruction on the LVGL docs example and created an gif widget.
  5. Pushed the firmware with each C array. (So each firmware version had only 1 C array. So i have tried all 4 C arrays in 4 different times)
  6. But nothing on the screen.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

    LV_IMG_DECLARE(compatible_gif);
    static lv_obj_t *img;
    img = lv_gif_create(lv_scr_act());
    lv_gif_set_src(img, &compatible_gif);
    lv_obj_align(img, LV_ALIGN_LEFT_MID, 20, 0);
1 Like

Iā€™m experiencing the exact same issue with v8.3
Did you ever find the root cause?