Skip to content

Conversation

@renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
Pillow (changelog) ==10.4.0 -> ==12.0.0 age confidence
pillow (changelog) ==10.4.0 -> ==12.0.0 age confidence
pillow (changelog) ==9.5.0 -> ==12.0.0 age confidence
pillow (changelog) ==10.3.0 -> ==12.0.0 age confidence
pillow (changelog) ==11.1.0 -> ==12.0.0 age confidence

Release Notes

python-pillow/Pillow (Pillow)

v12.0.0

Compare Source

v11.3.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/11.3.0.html

Deprecations

Documentation

Dependencies

Testing

Type hints

Other changes

v11.2.1

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/11.2.1.html

Deprecations

Documentation

Dependencies

Testing

Type hints

Other changes

v11.1.0

Compare Source

See GitHub Releases:

v11.0.0

Compare Source

  • Update licence to MIT-CMU #​8460
    [hugovk]

  • Conditionally define ImageCms type hint to avoid requiring core #​8197
    [radarhere]

  • Support writing LONG8 offsets in AppendingTiffWriter #​8417
    [radarhere]

  • Use ImageFile.MAXBLOCK when saving TIFF images #​8461
    [radarhere]

  • Do not close provided file handles with libtiff when saving #​8458
    [radarhere]

  • Support ImageFilter.BuiltinFilter for I;16* images #​8438
    [radarhere]

  • Use ImagingCore.ptr instead of ImagingCore.id #​8341
    [homm, radarhere, hugovk]

  • Updated EPS mode when opening images without transparency #​8281
    [Yay295, radarhere]

  • Use transparency when combining P frames from APNGs #​8443
    [radarhere]

  • Support all resampling filters when resizing I;16* images #​8422
    [radarhere]

  • Free memory on early return #​8413
    [radarhere]

  • Cast int before potentially exceeding INT_MAX #​8402
    [radarhere]

  • Check image value before use #​8400
    [radarhere]

  • Improved copying imagequant libraries #​8420
    [radarhere]

  • Use Capsule for WebP saving #​8386
    [homm, radarhere]

  • Fixed writing multiple StripOffsets to TIFF #​8317
    [Yay295, radarhere]

  • Fix


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners October 15, 2025 23:07
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Oct 15, 2025
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. api: people-and-planet-ai api: vision Issues related to the Cloud Vision API. labels Oct 15, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs a routine dependency update for the Pillow library, upgrading it to version 12.0.0 across multiple Python requirements.txt files. This ensures that all relevant projects and examples are leveraging the most current version of the image processing library, benefiting from the latest improvements and maintaining compatibility with modern Python environments.

Highlights

  • Pillow Dependency Update: The Pillow library has been updated to its latest major version, v12.0.0, across all affected requirements.txt files. This update brings the projects up to date with the newest features, performance enhancements, and security fixes from the Pillow project.
  • Broad Impact: This change affects various Python projects within the repository, including App Engine flexible environment examples, Dataflow GPU examples, and several Generative AI and Vision API snippets, ensuring consistent use of the latest Pillow version.
  • Version Range: The previous Pillow versions being updated ranged from 9.5.0 to 11.1.0, indicating a significant leap for some projects to the v12.0.0 release.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 15, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This PR updates the pillow dependency to v12.0.0 across many requirements.txt files. This is a major version upgrade from various versions (v9, v10, v11), which introduces breaking changes. My review focuses on two main points:

  1. Risk of Breaking Changes: The update from older versions of Pillow, especially v9.5.0, to v12.0.0 is significant. Pillow v10.0.0 removed many deprecated APIs. Since this PR only contains dependency updates and no code modifications, there's a critical risk of runtime failures if the application code uses any of these removed features. I've added comments with critical or high severity to highlight this risk on the affected files. It is essential to thoroughly test the application to ensure compatibility.
  2. Dependency Consolidation: In several requirements.txt files, the pillow dependency was specified multiple times with version markers for different Python versions. Since the updated version is the same across all Python versions, I've suggested consolidating these into a single line for improved maintainability.

Please review the detailed comments and ensure the application is fully tested against these changes before merging.

Comment on lines +2 to +3
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.

Additionally, since the version is now the same for all python versions, these two lines can be consolidated.

pillow==12.0.0

Comment on lines +2 to +3
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.

Additionally, since the version is now the same for all python versions, these two lines can be consolidated.

pillow==12.0.0

Comment on lines +2 to +3
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Updating Pillow from v9.5.0 to v12.0.0 is a major jump that includes multiple breaking changes. Pillow v10.0.0, for instance, removed several deprecated functions (e.g., Image.ANTIALIAS, ImageDraw.textsize, ImageFont.getsize). Since there are no code changes in this PR to accommodate these removals, it's critical to verify that the code in this snippet does not use any of these removed APIs to prevent runtime failures.

Additionally, since the version is now the same for all python versions, these two lines can be consolidated.

pillow==12.0.0

Comment on lines +4 to +5
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.

pillow==12.0.0

Comment on lines +4 to +5
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.

pillow==12.0.0

Comment on lines +4 to +5
pillow==12.0.0; python_version < '3.8'
pillow==12.0.0; python_version >= '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating Pillow from v10.4.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

Also, since the pillow version is now the same regardless of the Python version, these two lines can be consolidated into a single requirement for better readability and maintenance.

pillow==12.0.0

@@ -1,3 +1,3 @@
pillow==10.3.0
pillow==12.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating Pillow from v10.3.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes. Given this is a dependency-only update, it's crucial to verify that no breaking changes from Pillow v11 and v12 affect this application.

@@ -1,2 +1,2 @@
google-genai==1.42.0
pillow==11.1.0
pillow==12.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Updating Pillow from v11.1.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

google-genai==1.42.0
# PIl is required for tools_code_execution_with_txt_img.py
pillow==11.1.0
pillow==12.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Updating Pillow from v11.1.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

@@ -1,2 +1,2 @@
google-genai==1.42.0
pillow==11.1.0
pillow==12.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Updating Pillow from v11.1.0 to v12.0.0 is a major version jump. Please ensure the code is compatible with the new version, as major versions can introduce breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: appengine Issues related to the App Engine Admin API API. api: people-and-planet-ai api: vision Issues related to the Cloud Vision API. owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants