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 the issue reported in #34 #36

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

Conversation

thorikawa
Copy link

Fix the issue that component.quantizationTable is sometimes undefined as reported in #34.

The root cause is that jpgjs expects SOF (Start of Frame) section to appear after DQT section in jpeg header, but it's not always the case for some jpg files. I updated the code so it works whether SOF appears after DQT or not.

…rt of Frame' section appears before 'DQT' section in the header. notmasteryet#34
@thorikawa
Copy link
Author

@yurydelendik Please review it. Thank you for great work of this repo!

@yurydelendik
Copy link
Collaborator

Thanks. I will see if I can move this patch to the PDF.js repo.

loretoparisi added a commit to loretoparisi/dominant-colors-xmlhttprequest-example that referenced this pull request Apr 8, 2021
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.

2 participants