Tft gif esp32 tft_spi

Hardware: ESP32-2432S032
Arduino IDE
Libraries: TFT_eSPI, AnimatedGIF

Hello, I try to play an animated gif from the SD-card on an ESP32-2432S032 (ESP32 Dev Module, ST7789).
In the AnimatedGIF bundle there is the (working) "TFT_eSPI_memory" example but I don't know how to modify it to work with GIF-files from SD-card.

Can someone please point me in the good direction?
Thanks in advance,