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
Unable to load a compressed TIFF file #69
Comments
I can reproduce that on Windows. Downgrading libtiff to 4.0.10 ( PS: it works fine on macOS and Linux, only Windows is failing. |
Some new info here: python-pillow/Pillow#4237 (comment) |
Can you double check this was solved by conda-forge/libtiff-feedstock#49? |
that patch did end up fixing things for pillow, but it definitely broke opencv. opencv worked correctly before the patch. |
I think maybe PIL should patch? |
So strange, I don't know opencv does it:
Then:
both work. Now, install the unpatched 4.1
PIL fails, opencv works. Now, install the patched up 4.1
PIL works, opencv doesn't. |
Looks like @cgohlke has the solution here: python-pillow/Pillow#4237 (comment) So re-patch libtiff and try again? |
Let's upload to our private channels first ;) |
Ok, I think I setup my azure environment correctly. Could one of you make a PR to my fork? If I would, it would upload on every push, kinda annoying I would want to test against:
My feeling is that we can get PIL to work, but we might break tifffile and opencv. If that is the case, then it is really a PIL issue. |
Dropping in a bit, I too am getting errors with
|
@tdegeus This isn't related to this issue I'm afraid - can you please open a new issues and provide your full conda environment information? |
FYI @tdegeus this is likely due to conda-forge/libtiff-feedstock#48 (just me pattern matching on the packages) |
@patricksnape I also noted that in gdal and pulled the packages. We'll have to roll a migrator to get that change in. |
@patricksnape It seems that my issues were resolve in https://github.com/conda-forge/libtiff-feedstock |
libtiff 4.1.0-h885aae3_4 works for me after conda-forge/libtiff-feedstock#51 |
Issue:
When decoding a compressed (e.g. LZW or deflate) TIFF file, an
OSError: -2
is thrown. Using e.g. this image:Seems to be happening only on Windows and only w/ the conda package using the separate libtiff, the statically linked pillow wheel from PyPI works.
See also python-pillow/Pillow#4237 for more details.
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: