Skip to content

Bump pillow from 6.2.0 to 12.3.0 in /images - #3820

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/images/pillow-12.3.0
Open

Bump pillow from 6.2.0 to 12.3.0 in /images#3820
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/images/pillow-12.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 22, 2026

Copy link
Copy Markdown
Contributor

Bumps pillow from 6.2.0 to 12.3.0.

Release notes

Sourced from pillow's releases.

12.3.0

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

Removals

Documentation

Dependencies

Testing

... (truncated)

Changelog

Sourced from pillow's changelog.

Changelog (Pillow)

11.1.0 and newer

See GitHub Releases:

11.0.0 (2024-10-15)

  • 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]

... (truncated)

Commits
  • bb1d8e8 12.3.0 version bump
  • e63fc48 Add release notes for SBOM and performance improvements (#9747)
  • 13b701b Add release notes for #9679
  • 5564ca7 List methods
  • a0920fd Speed up ImageChops operations (#9738)
  • 07e9a6c Speed up Image.filter() (#9736)
  • a94578c Speed up Image.getchannel(), Image.merge(), Image.putalpha() and `Image...
  • 53e02c4 Speed up Image.fill(), Image.linear_gradient() and `Image.radial_gradient...
  • af03747 Speed up Image.resample() (#9739)
  • 5c9ca56 Speed up alpha_composite, matrix, negative, quantize (#9740)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.2.0 to 12.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@6.2.0...12.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 12.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jul 22, 2026
@claude

claude Bot commented Jul 22, 2026

Copy link
Copy Markdown

🤖 Dependabot Review — Pillow 6.2.0 → 12.3.0 (/images)

🔍 Dependency Analysis Summary

Package Old New Type Scope
Pillow 6.2.0 12.3.0 MAJOR (6 major versions) images/requirements.txt — dev tooling only

Overall risk to the shipped app: 🟢 LOW. Pillow is not an Android/Gradle dependency and is not bundled in the APK. It is a Python build-time dependency for the developer utility in images/ (make_drawables.py / dpi_manager.py) that regenerates drawable resources from source PNGs. It is not referenced by any Gradle build or CI workflow.

Risk to the images/ tooling itself: 🔴 HIGH — the script will not run with Pillow 12. See details below.

📋 Detailed Changelog Review

  • Package: Pillow (6.2.0 → 12.3.0)
  • Changes: 6+ years of releases — major performance work, format support, and a large number of security fixes.
  • Breaking Changes relevant here:
    • Image.ANTIALIAS removed in Pillow 10.0.0 (deprecated in 9.1.0). Replacement: Image.Resampling.LANCZOS (or Image.LANCZOS). dpi_manager.py uses Image.ANTIALIAS at lines 125 and 136 → this raises AttributeError at runtime.
    • Python 2 support dropped in Pillow 7.0.0. Pillow 12.3.0 requires Python 3.9+. The images/ scripts are written for Python 2 (print "..." statements in dpi_manager.py / make_drawables.py, plus raw_input()), so Pillow==12.3.0 cannot even be installed alongside this Python 2 toolchain.
  • Security Fixes: Pillow 6.2.0 is very old and carries many known CVEs (buffer overflows / DoS in PNG, TIFF, BLP, FLI, ICNS, WebP decoders — CVE-2020-5310..5313, CVE-2021-25287/25288, CVE-2021-27921..27923, CVE-2021-28675..28678, CVE-2022-22815..22817, CVE-2023-44271, CVE-2023-4863 libwebp, CVE-2024-28219, and more). Upgrading is good security hygiene even for dev tooling.
  • Migration Notes: Replace Image.ANTIALIASImage.Resampling.LANCZOS; the surrounding scripts also need a Python 2 → 3 migration to be usable.

⚠️ Impact Assessment

  • Breaking Changes Found: Yes, but confined to the images/ dev utility — no impact on app runtime, build output, or tests.
  • Affected Files:
    • images/dpi_manager.py:125, images/dpi_manager.py:136Image.ANTIALIAS removed.
    • images/dpi_manager.py:95numpy.fromstring (deprecated; numpy is also pinned at 1.9.1, itself Python 2-era).
    • Python 2 syntax across dpi_manager.py / make_drawables.py.
  • Test Impact: None. No JVM/Android tests touch this. The script's own --test mode is manual.
  • Configuration Changes: None required for the app.

🛠️ Recommendations

  • Action Required: None for the app. Note this bump leaves images/requirements.txt internally inconsistent — Pillow 12.3.0 needs Python 3.9+, but the scripts (and pinned numpy==1.9.1, PyYAML==5.1) are Python 2. The bumped tooling is not functional as-is regardless of merging.
  • Testing Focus: Nothing in the CI/test matrix is affected.
  • Follow-up Tasks (optional, low priority — separate ticket): if images/ tooling is still used, modernize it to Python 3 + Pillow 10+ APIs: Image.ANTIALIAS → Image.Resampling.LANCZOS, print statements → print(), raw_input → input, numpy.fromstring → numpy.frombuffer, yaml.load(...) → yaml.safe_load(...), and unpin numpy/PyYAML. If the tooling is dead, consider removing images/.
  • Merge Recommendation: APPROVE — safe to merge (no app/build/test impact; improves the security posture of an old dev dependency). Just be aware the images/ scripts remain non-functional until migrated to Python 3; that pre-dates this PR and should not block it.

📚 Useful Links

🤖 Automated Dependabot review. MAJOR bump, but scoped to a non-shipped Python dev utility.

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

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants