Companion library for Adafruit_GFX to load images from SPIFFS partition; tested with Arduino core for the ESP32.
Requires Adafruit_GFX library and one of the SPI color graphic display libraries, e.g. Adafruit_ILI9341.
#include <SPIFFS.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h> // use the correct library for your display
#include <SPIFFS_ImageReader.h>
SPIFFS_ImageReader reader;
if(!SPIFFS.begin())
reader.drawBMP("/minion.bmp", tft, 0, 0);
ImageReturnCode drawBMP(char *filename, Adafruit_SPITFT &tft, int16_t x, int16_t y);
ImageReturnCode loadBMP(char *filename, SPIFFS_Image &img);
ImageReturnCode bmpDimensions(char *filename, int32_t *w, int32_t *h);
void printStatus(ImageReturnCode stat, Stream &stream = Serial);