Closed SirCooper closed 1 year ago
tried it with following picture: https://upload.wikimedia.org/wikipedia/commons/0/00/Center_of_the_Milky_Way_GalaxyIV%E2%80%93_Composite.jpg (9.725 × 4.862 Pixel, Dateigröße: 17,36 MB, MIME-Typ: image/jpeg) , TJpgDec.setJpgScale(4) took 12869 millis, but worked :) TJpgDec.setJpgScale(8) took 22164 millis
Looks good. Can you create a pull request?
I've implemented a streaming option. The largest picture, i've streamed so far, was following: https://upload.wikimedia.org/wikipedia/commons/f/f7/Yosemite-stream.jpg (1,024 × 768 pixels, file size: 146 KB, MIME type: image/jpeg), TJpgDec.setJpgScale(4), duration: ~2837 millis This way, i was able, to load big images from HTML without overload, or using huge parts of the ram for the array. works on esp32, should work on esp8266 new code: TJPG_decoder.h 19
TJPG_decoder.h 60
TJPG_decoder.h 81
TJPG_decoder.cpp 96
TJPG_decoder.cpp 179