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

fix getJpegInfo to skip DHT marker #3667

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rnigro-rwb
Copy link

@rnigro-rwb rnigro-rwb commented Nov 8, 2023

Fixes #3318.

getJpegInfo now skips the DHT marker (0xc4) because that marker is not a SOF (start of frame) marker and therefore the segment to follow does not have the size information.

@HoekWax
Copy link

HoekWax commented Nov 15, 2023

Hello @HackbrettXXX, is it possible to check and merge this fix ? We are multiple people facing this issue.

I can provide an image that creates the issue when used using addImage if you want me to.

Thanks.

@rnigro-rwb
Copy link
Author

Linking PR to issue.

Fixes #3318

@HoekWax
Copy link

HoekWax commented Nov 27, 2023

Hello @MrRio, can you or someone else review and merge this request ? Thanks

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

Successfully merging this pull request may close these issues.

jsPDF images are corrupted when using large, smartphone-captured jpegs
2 participants