← Back to Pull requests

Correct handbook, installation and deprecation documentation #10628

Closed
unknown closed this pull request without merging on Nov 25, 2026 13:14 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 04:27 UTC
Author

Preview: https://pillow--10628.org.readthedocs.build/en/10628/deprecations.html

Documentation changes only.

Deprecations
From "TiffImagePlugin IFD_LEGACY_API" onwards, removed features used ~ underlines instead of ^, so they were all nested under "Get internal pointers to objects".
ImageCms.INTENT_RELATIVE_COLORIMETRIC and Intent.RELATIVE_COLORIMETRIC were misspelled.
Give the removal version of Image.getdata() and ImageQt.align8to32(), matching their warnings.
raise_ioerror recommended raise_oserror, which has also been removed, and the PyQt4 entry recommended PyQt5 or PySide2, which have also been removed.

Tutorial
paste() clips a region that extends outside the image, rather than not allowing it.
The "Identify image files" script printed (128, 128)xRGB.
split() of a single-band image returns a tuple containing a copy, not the image itself.
The ImageSequence.Iterator example loop only had a comment, so was a SyntaxError if copied.
hopper.ppm is 128x128, and the list of sequence formats was out of date.

Security
T-1 and T-2 said that Pillow keeps EXIF, XMP, IPTC, ICC profiles, comments and PNG text chunks when re-saving. What is kept depends on the format and save options. For example, JPEG drops EXIF unless it is passed to save().
EPS invokes Ghostscript when loading pixel data, not when opening.
Use python3 -m pip, and fix a sentence that had no main clause.

Writing your own image plugin
The bit decoder bits defaults to 8, and codec functions are looked up in PIL._imaging, not the core image object.

Installation
The macOS universal2 recipe used --platform macosx_10_10_x86_64, which doesn't match wheels for Python 3.12 and later. macosx_11_0_x86_64 downloads the right wheel, and the example filenames are updated from Pillow 9.4.0 / cp39.
Mention iOS wheels.
The -C [feature]=enable sample would install a binary wheel and ignore the settings without --no-binary :all:.
Use the Ubuntu packages CI installs (libtiff-dev, libjpeg-turbo8-dev), update the tested libtiff and libjpeg-turbo versions, and remove notes about Fedora 23 and Tcl/Tk settings that don't exist.
Windows CI tests 3.12 on arm64, not on Windows Server 2025.

Diff: 283 lines (+212 / -71) across 3 files Reviewer: radarhere Review duration: 526m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 283 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.338
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10628"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.7% (MEDIUM) · Higher = larger blast radius
39.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.2% · Safe to merge
17.2%