Closed fah closed 11 months ago
The library can decode large jpgs so I suspect there is something about the image file that casues a problem. Can you post the roguw image as a zip file here?
Maybe if the image output is greyscale, this bug is the problem? http://elm-chan.org/fsw/tjpgd/patches.html
I have added the above patch.
Dear Bodmer,
thank you for the premium support. :-)
I have applied the patch, but error 3 still persists. Please find attached a tested zip jpeg file that causes this error.
Regards
It appears the image format is not compatible with the TJpg_Decoder library decoder engine. Since I did not write the core decoder I am not able to identify the root cause.
The image also crashes this library which uses a different decode engine!
The decoder library here uses another decode engine and works with the troublesome image, so that would be a good option in this case.
Example use of JPEGDEC with TFT_eSPI: 70_JPEGDEC_demo.zip
You are the best! Thank you very much!
I get an Error Code 3 = JDR_MEM1, / 3: Insufficient memory pool for the image /
My code is:
returns
I checked that the file "temp_filename" in SPIFFS is valid with the FSWebbrowser example.
Size of the File is 12148 Bytes.
Dimensions: 704 x 576, 72 Pixel/Inch,Color model: RGB JFIF: 1.0.1, Density 1/1, ColorSync: sRGB IEC61966-2.1
First Hex values of the file: FFD8FFE0 00104A46 49460001
Controller is a LILYGO TTGO T5-4.7 Inch E-paper ESP32 S3 with 8MB
The code, executed right before TJpgDec.getFsJpgSize() and TJpgDec.drawFsJpg(), :
returns
I am looking for a solution to display this image in 16 colors as greyscale on the above-mentioned e-paper display. As far as I can tell, the size of the image is too large for the ESP. So a first step could be to reduce the 24-bit colours to 4-bit greyscale? Could I do that with another package that is compatible with yours?