Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawSdJpeg doesn't work for some jpeg images #27

Closed
PLSousa opened this issue Nov 11, 2020 · 4 comments
Closed

drawSdJpeg doesn't work for some jpeg images #27

PLSousa opened this issue Nov 11, 2020 · 4 comments

Comments

@PLSousa
Copy link

PLSousa commented Nov 11, 2020

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
Copy link
Owner

Bodmer commented Nov 13, 2020

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
Copy link
Author

PLSousa commented Nov 13, 2020 via email

@Bodmer
Copy link
Owner

Bodmer commented Nov 13, 2020

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 :-(

@Bodmer Bodmer closed this as completed Nov 13, 2020
@PLSousa
Copy link
Author

PLSousa commented Nov 13, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants