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 LSB-encoded TIFF images. #39

Merged
merged 2 commits into from
Apr 10, 2018

Conversation

lbellonda
Copy link
Member

Fix and tests for issue #37. Please, review the changes, since the impact on the LZW decoder can be huge.

@SethChampagneNRL
Copy link

Does this merge fully resolve issue #37? Is there a reason it has been ignored for almost a full year? I am currently experiencing the same issue with the TIFFLZWDecompressor.

@stain
Copy link
Member

stain commented Apr 10, 2018

@SethChampagneNRL I don't know, but it looks like it, as it seems to add full support for LSB.

This issue has been more overseen than ignored. As the pull request only adds new code in the case of (previously broken) LSB-encoded files I think it's better to merge and see if it fully resolves #37.

@stain stain merged commit 24c76a4 into jai-imageio:master Apr 10, 2018
@stain stain changed the title Issue #37 Add support for LSB-encoded TIFF images. Apr 10, 2018
@SethChampagneNRL
Copy link

I should mention that I used a local build of this branch and it resolved the NullPointerException issue I was having. I was able to read the compressed tiff. I appreciate the merge.

marpet pushed a commit to senbox-org/imageio-ext that referenced this pull request Apr 27, 2020
marpet added a commit to senbox-org/imageio-ext that referenced this pull request May 5, 2020
* set intermediate version

* FiX: TIFFLZWDecompressor Null Pointer Exception
taken from jai-imageio/jai-imageio-core#39

Issue geosolutions-it#37 support for LSB LWZ compressed TIFF

* synchronised super.decode() call to try to avoid NPE

java.lang.NullPointerException
	at it.geosolutions.imageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2925)
	at it.geosolutions.imageioimpl.plugins.tiff.TIFFNullDecompressor.decode(TIFFNullDecompressor.java:174)
	at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.decodeTile(TIFFImageReader.java:1798)

* set version to 1.3.3.2-SNAP

Co-authored-by: Luca Bellonda <[email protected]>
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.

3 participants