Bodmer / TFT_eFEX

A support library for TFT_eSPI that adds commonly used extra functions
Other
83 stars 27 forks source link

PNG filetype support #42

Closed simkard69 closed 2 years ago

simkard69 commented 2 years ago

Hello,

Do we have any chance of seeing PNG file type support to draw from files located in SPIFFS and/or SD card directly ?

Thanks !

Bodmer commented 2 years ago

There are a few example sketches here: https://github.com/Bodmer/PNG_TEST_ONLY

I have not created a library yet but it is on the to do list.

Bodmer commented 2 years ago

I came across a PNG decoder library that is quite good. It does need a fair bit of RAM though (40kbytes?). It can be loaded via the Arduino IDE library manager.

The examples provided with that library would need to be modified to work with TFT_eSPI.

I created a test sketch for TFT_eSPI that decodes a small image stored in LittleFS. This was tested on an RP2040 board but should work fine on an ESP32: decPNG_Minimal.zip

Bodmer commented 2 years ago

PNG examples have been added to TFT_eSPI here.