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

Add support for images with data expressed in non-8bit values. #33

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

Conversation

mbasaglia
Copy link

Adds support for 12 bit images and allows loading images which define quantization tables after the frame.

@yurydelendik
Copy link
Collaborator

Thanks. I will be looking into moving this code into PDF.js repo. Could you add a link (?) to the test images?

@mbasaglia
Copy link
Author

Sure, here is a 12 bit image (most likely the browser won't be able to display it) http://mattbas.org/misc/12bitjpg/12bit.jpg

And this is the output: http://mattbas.org/misc/12bitjpg/converted.jpg

(It's some kind of medical image so it looks weird)

@rii-mango
Copy link

I'd like to add my support for this feature.

@mbasaglia if you think you can fix the merge conflict, I have several 12-bit images I can test with.

@mbasaglia
Copy link
Author

The code for jpg.js has changed completely so it isn't possible to fix conflicts.

@ivmartel
Copy link

ivmartel commented Sep 3, 2015

I too wish to add my support. I don't get the status of the jpg.js, @mbasaglia's file is very different to the one of this repository but closer to the one on the pdf.js repo, why?

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.

4 participants