-
-
Notifications
You must be signed in to change notification settings - Fork 56.3k
TIFFTAG_PREDICTOR should not be applied unless LZW, DEFLATE or ADOBE_DEFLATE #21871
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
TIFFTAG_PREDICTOR should not be applied unless LZW, DEFLATE or ADOBE_DEFLATE #21871
Conversation
@xiongzhen Thanks for the patch. Could you describe your use case and why |
@asmorkalov We used to support
I suppose it should not opt-in Thanks. |
Thanks for details. I dig a bit in documentation and got your point. Could you add couple of test cases for your case (PACKBITS + LZW and something out of condition) like this: opencv/modules/imgcodecs/test/test_tiff.cpp Line 331 in 438fe3f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the test!
Thanks a lot! The patch looks good to me! Please squash the commits to merge solid patch. |
…pression cases for smaller files.
36cf4b3
to
2238ac7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@xiongzhen Thanks for the contribution. I squashed commits in your branch to have solid OpenCV commit history after merge. |
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.