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

Saving bitmap from JPEG #75

Open
ethaanlau opened this issue Feb 27, 2024 · 1 comment
Open

Saving bitmap from JPEG #75

ethaanlau opened this issue Feb 27, 2024 · 1 comment

Comments

@ethaanlau
Copy link

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!

@Bodmer
Copy link
Owner

Bodmer commented Mar 1, 2024

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.

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