Skip to content

Correct handbook, installation and deprecation documentation - #10628

Open
aclark4life wants to merge 2 commits into
mainfrom
handbook-docs-fixes
Open

aclark4life wants to merge 2 commits into
mainfrom
handbook-docs-fixes

Conversation

@aclark4life

@aclark4life aclark4life commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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.

🤖 Generated with Claude Code

Fix heading levels in the removed features list, correct tutorial and
security statements that disagree with the code, and update outdated
installation instructions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant