Correct handbook, installation and deprecation documentation #10628
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
radarhere
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_COLORIMETRICandIntent.RELATIVE_COLORIMETRICwere misspelled.Give the removal version of
Image.getdata()andImageQt.align8to32(), matching their warnings.raise_ioerrorrecommendedraise_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.Iteratorexample loop only had a comment, so was aSyntaxErrorif copied.hopper.ppmis 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
bitsdefaults to 8, and codec functions are looked up inPIL._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_64downloads the right wheel, and the example filenames are updated from Pillow 9.4.0 / cp39.Mention iOS wheels.
The
-C [feature]=enablesample 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.