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
Support for Pillow v10.1 (re: setting image.mode
)
#1044
Comments
An update to Pillow (10.1.0) breaks for most recent imageio (<=2.31.5). See imageio/imageio#1044 [1] for the upstream issue. [1] imageio/imageio#1044
A Pillow update (10.1.0) breaks for most recent imageio (<=2.31.5). See imageio/imageio#1044 [1] for the upstream issue. [1] imageio/imageio#1044
👍 good find. This does break our pillow plugin in a few places, because we have reasons to want those later consequences. In a nutshell, the imageio/imageio/plugins/pillow.py Lines 289 to 312 in 0bbf196
I need to see if/how we can keep this functionality given the recent changes. |
I tried to "sidestep" the Unfortunately, I found some additional problems related to GIF writing (among other things, one of our test images is now detected as a "compression bomb" by Pillow) and noticed that the JPEG writer is flakey on my local Mac (produces non-deterministic results that cause sporadic test failures). Long story short, I will pin Pillow to v10.0.0 until I can take a better look at all the changes introduced by pillow v10.1 (PR lives here #1046). |
Pillow 10.1.0 introduces incompatabilities with scikit-image. Revert when scikit-image/scikit-image#7207 imageio/imageio#1044 is fixed.
Ping. Have you been able to make any progress? Given the history of security vulnerabilities in pillow, we're a bit nervous about the pin. FWICS the newest vulnerability is in |
A little, but it is still not done. I found a solution for the problems that Pillow v10.1.0 causes in our old Pillow plugin. Now all tests pass locally on my Windows workstation but still break on CI on Linux, so I'm currently looking into those. |
@mgorny Done. ImageIO once again works with all recent pillow versions and I've removed the pin. Will be part of Monday's release :) |
Thank you! |
Thanks so much @FirefoxMetzger ! Do you know if the next release will happen soon ? |
Thanks for the ping @GaetanLepage . It should have been released on Monday, but was blocked by failing tests on CD (the same tests passed in CI so this is an interesting failure). I will have a look and trigger a release after I fixed the problem :) Edit: the reason for the failure is that pyav has released a new version major over the weekend and this is breaking one of our tests :) |
Hi there, and thanks for your support.
In https://github.com/imageio/imageio/blob/master/imageio/plugins/pillow.py#L312, the
mode
attribute of aPIL.Image
object is set directly, as inI think this is not working any more as of the recent Pillow v10.1:
The minimal failing example would be something like
This example goes through with Pillow v10.0, but with Pillow v10.1 if fails as in:
EDIT: the test above is with imageio 2.31.5
(original issue in our repo, for the record: fractal-analytics-platform/fractal-tasks-core#570)
The text was updated successfully, but these errors were encountered: