TJpg_Decoder icon indicating copy to clipboard operation
TJpg_Decoder copied to clipboard

Saving bitmap from JPEG

Open ethaanlau opened this issue 1 year ago • 1 comments

Hi Bodmer,

I'm trying to use the TJpg_Decoder library to display a jpeg to a tft display. I have it working, but the only issue is that it's very slow (I'm using the Adafruit GFX library with the Adafruit RA8875 board). To speed up drawing, I want to save all pixel data in a bitmap so I can use the hardware accelerated function for the RA8875 to scan in pixels line by line instead of by block.

Is there a way to store the entire decoded JPEG data in an array?

Any help from others who have had similar issues would be greatly appreciated!

ethaanlau avatar Feb 27 '24 21:02 ethaanlau

The simplest option is to load the image into an app such as MS Paint and save as a bmp file then convert to an array using an online tool.

Bodmer avatar Mar 01 '24 08:03 Bodmer