Bodmer / TFT_eFEX

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

drawSdJpeg doesn't work for some jpeg images #27

Closed PLSousa closed 4 years ago

PLSousa commented 4 years ago

Hello Bodmer, Many thanks for this development.

I have used your library to display jpeg images stored in a SD card or in SPIFFS. It has worked successfully for many jpeg files, but not for these ones (cover.jpg, cover2.jpg, cover3.jpg). Do you have any idea why ?

Basically, I use an ESP32 running ESP32_SDcard_jpeg.ino or Jpeg_ESP32.ino.

ESP32 Jpeg decoder test! Initialisation done. Listing SPIFFS files: ================================================= File name Size ================================================= /cover2.jpg 14082 bytes /EagleEye.jpg 37755 bytes /cover3.jpg 27765 bytes /cover.jpg 18487 bytes =================================================

fex.drawJpgFile(SPIFFS, "/EagleEye.jpg", 0, 0); // it displays an image

fex.drawJpgFile(SPIFFS, "/cover.jpg", 0, 0); // nothing is displayed in the TFT 240x240_ST7789

cover cover2 cover3

Bodmer commented 4 years ago

jpeg images can be encoded in different ways and not all are supported. You may find that loading the images into a program like Paint, and then saving them as a jpeg will fix it.

PLSousa commented 4 years ago

thank you Bodmer. But I would like to download Jpeg images from the web ( www.fip.fr) and display them, in real time. It is for a webradio project using ESP32. "cover1.jpg is an example of downloaded image.

Le ven. 13 nov. 2020 à 13:20, Bodmer notifications@github.com a écrit :

jpeg images can be encoded in different ways and not all are supported. You may find that loading the images into a program like Paint, and then saving them as a jpeg will fix it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bodmer/TFT_eFEX/issues/27#issuecomment-726734789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECQPM7LN7XO23E5SKKNQV3SPUQB7ANCNFSM4TRT4EVQ .

Bodmer commented 4 years ago

Image analysis indicates the jpegs you cannot display are in "Progressive" format and this is not supported by the JPEGDecoder library or TJpg_Decoder libraries. So I have no solution for you :-(

PLSousa commented 4 years ago

thanks anyway

Le ven. 13 nov. 2020 à 15:25, Bodmer notifications@github.com a écrit :

Image analysis indicates the jpegs you cannot display are in "Progressive" format and this is not supported by the JPEGDecoder library or TJpg_Decoder libraries. So I have no solution for you :-(

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bodmer/TFT_eFEX/issues/27#issuecomment-726793156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECQPM4H36DU6OK55DMDZZ3SPU6VZANCNFSM4TRT4EVQ .