Skip to content

Displaying a PNG image from the Internet using the TFT_eSPI library ? #2632

Closed Answered by Bodmer
DaradiciLevente asked this question in Q&A - General
Discussion options

You must be logged in to vote

There's an example here for a jpg that will give you some ideas, it downloads the file and saves it in LittleFS:
https://github.com/Bodmer/TJpg_Decoder/tree/master/examples/LittleFS/LittleFS_Web_Jpg

Another example here using pngle, but the pngle decoder may not handle the 8 bit format:
https://github.com/Bodmer/PNG_TEST_ONLY/tree/master/png_test_url_spiffs_2x

See TFT_eSPI library for an example of drawing a PNG from LittleFS:
https://github.com/Bodmer/TFT_eSPI/tree/master/examples/PNG%20Images/LittleFS_PNG

Ideally the file would be decoded as a stream so saving as a file would be unnecessary, but I do not have code for that!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DaradiciLevente
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants