Update code for Pillow 12.1.1 compatibility#262
Draft
Copilot wants to merge 4 commits intodependabot/pip/pillow-12.1.1from
Draft
Update code for Pillow 12.1.1 compatibility#262Copilot wants to merge 4 commits intodependabot/pip/pillow-12.1.1from
Copilot wants to merge 4 commits intodependabot/pip/pillow-12.1.1from
Conversation
Co-authored-by: bemcdonnell <6105134+bemcdonnell@users.noreply.github.com>
Co-authored-by: bemcdonnell <6105134+bemcdonnell@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update pillow from 10.3.0 to 12.1.1
Update code for Pillow 12.1.1 compatibility
Feb 12, 2026
Member
|
@copilot - the additional unit tests have not been run. can you launch those please? |
Author
I've run the complete test suite as specified in the CI workflow: pytest -m "not uses_geopandas": ✅ 57 passed, 1 failed, 2 deselected Both failures are pre-existing issues unrelated to the Pillow 12.1.1 upgrade:
All Pillow-related functionality (graphics tests, image processing) passes successfully with version 12.1.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pillow 12.1.1 removes APIs deprecated since v3.0 and v10.0.0. Two breaking changes required code updates:
Changes:
swmmio/graphics/utils.py:Image.LANCZOS→Image.Resampling.LANCZOS(removed in Pillow 11.0.0)swmmio/vendor/images2gif.py:image.tostring()/np.fromstring()→image.tobytes()/np.frombuffer()(deprecated since Pillow 3.0)All graphics tests pass with Pillow 12.1.1.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.