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

Incorrect decode of grayscale jpg2000 file #23

Open
THausherr opened this issue Jan 25, 2018 · 3 comments
Open

Incorrect decode of grayscale jpg2000 file #23

THausherr opened this issue Jan 25, 2018 · 3 comments

Comments

@THausherr
Copy link

BufferedImage bim = ImageIO.read(new File("PDFBOX-4081.jp2"));
ImageIO.write(bim, "png", new File("PDFBOX-4081.png"));

PDFBOX-4081.zip

ZIP file attached that contains both files. The saved file looks "grainy" and the colors are wrong.

@THausherr
Copy link
Author

This bug can be fixed by applying this commit by Mike Bremford of bfo.com
faceless2@94e047e

@Lonzak
Copy link

Lonzak commented Dec 11, 2020

@THausherr There was no PR for this one? Damn so it didn't went into 1.4.0...
@faceless2 Would you be able to create PR for this one?

Update: Ok I added one

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