Bump Pillow to 11.1.0 #13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
In my work with GrandQC (specifically with SVSs and on Mac), I noticed that
wsi_tis_detect.pywould sometimes save the tissue detection mask with mode I;16. This image is then loaded inmain.pyand a resize is attempted with resample filter LANCZOS on line 143:grandqc/01_WSI_inference_OPENSLIDE_QC/main.py
Line 143 in 045b7a2
This would cause an error:
This is because of a known issue with Pillow 10.4.0 not supporting all resampling filters for images of mode I;16: python-pillow/Pillow#8333.
This has been patched in Pillow 11.0.0 and higher: python-pillow/Pillow#8422
In my testing this resolves the issue on both my Mac and on an Ubuntu VM with CUDA, but please try it on your systems!