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

ESP8266: JPG image from SPIFFS gets wrong decoding #13

Closed
nikola-winmaker opened this issue Jun 18, 2017 · 2 comments
Closed

ESP8266: JPG image from SPIFFS gets wrong decoding #13

nikola-winmaker opened this issue Jun 18, 2017 · 2 comments

Comments

@nikola-winmaker
Copy link

Hi all,
Great library! you made a great job!

I'm having some issue when running JPG decoding from SPIFFS,
The same sketch running from SD card runs perfectly.
The same JPG image is on SD card and on spiffs.

What i'm seeing when calling jpegInfo() is that values are shifted down:
Width 0
Height 160
Components 128
and so on...

Picture is 160x128.

This is only happening when running sketch from SPIFFS.
The image is uploaded to SPIFFS via Arduino ESP8266 Sketch Data Upload tool.
I uploaded JPG image for reference.

Best Regards,
Nikola

cake29

@Bodmer
Copy link
Owner

Bodmer commented Jun 21, 2017

This is not something I have encountered. I suspect this is a bug in the SPIFFS code that is part of the ESP8266 board package core. See here. In which case this should be fixed when version 2.4.0 of the Arduino core is released.

@Bodmer Bodmer closed this as completed Jun 21, 2017
@Bodmer
Copy link
Owner

Bodmer commented Jun 23, 2017

OK, update: I have witnessed a similar problem where the values returned by jpegInfo() are wrong. This appears to be due to a corrupted pointer that affects the values read out of a struct that contains the values. One of the values (Components) is a hard coded value of 1 and this seems to end up being reported as a different value.

I think this might be a bug in the ESP8266 core but have not been able to isolate the root cause.

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