# GIF (/examples/libs/gif)



Animated GIF decoder for playing GIFs inside LVGL image widgets. Enable with `LV_USE_GIF` in `lv_conf.h`.

Animated GIF from array and file [#animated-gif-from-array-and-file]

<LvglExampleBrief>
  Show the same bulb GIF decoded from a C array and from a file path.
</LvglExampleBrief>

Two `lv_gif` widgets are created on the active screen with
`LV_COLOR_FORMAT_ARGB8888`. The left one binds to the embedded
`img_bulb_gif` descriptor via `lv_gif_set_src`; the right one reads
`A:lvgl/examples/libs/gif/bulb.gif` through the filesystem driver
registered under drive letter `A`.

<LvglExample name="lv_example_gif_1" path="libs/gif/lv_example_gif_1" />
