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

TIFFImageIO::Deflate corrupt source image #574

EnderChris opened this Issue Mar 6, 2019 · 0 comments


None yet
2 participants
Copy link

EnderChris commented Mar 6, 2019


I've found that after writing my images as tiff with deflate compression, the in memories data where corrupted.

Steps to Reproduce

Here a main to test (I use 3d image):

Expected behavior

A ImageFileWriter should not change the data.
I think it should at least be marked in the documentation.




Tested on ITK 4.4.0 and 4.13.1


Tested under Windows


After some search in the code I've found that it's "normal" if you use the option PREDICTOR_HORIZONTAL as specified in a comment in "tiff_predict.c":
/* XXX horizontal differencing alters user's data XXX */

@EnderChris EnderChris added the type:Bug label Mar 6, 2019

@thewtex thewtex added the area:IO label Mar 12, 2019

@thewtex thewtex added this to the ITK v5.0rc02 milestone Mar 12, 2019

@thewtex thewtex closed this in #620 Mar 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.