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 |
asmorkalov
left a comment
There was a problem hiding this comment.
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
|
@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.