bpo-33297: Mention Pillow to work with more image formats. (GH-6505) · python/cpython@f900503

3 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -193,8 +193,8 @@ modules using the Distutils:

193193

module distribution

194194

a collection of Python modules distributed together as a single downloadable

195195

resource and meant to be installed *en masse*. Examples of some well-known

196-

module distributions are NumPy, SciPy, PIL (the Python Imaging

197-

Library), or mxBase. (This would be called a *package*, except that term is

196+

module distributions are NumPy, SciPy, Pillow,

197+

or mxBase. (This would be called a *package*, except that term is

198198

already taken in the Python context: a single module distribution may contain

199199

zero, one, or many Python packages.)

200200
Original file line numberDiff line numberDiff line change

@@ -800,6 +800,10 @@ reference to the image. When the last Python reference to the image object is

800800

deleted, the image data is deleted as well, and Tk will display an empty box

801801

wherever the image was used.

802802
803+

.. seealso::

804+
805+

The `Pillow <http://python-pillow.org/>`_ package adds support for

806+

formats such as BMP, JPEG, TIFF, and WebP, among others.

803807
804808

.. _tkinter-file-handlers:

805809
Original file line numberDiff line numberDiff line change

@@ -382,7 +382,7 @@ module names". For example, the module name :mod:`A.B` designates a submodule

382382

named ``B`` in a package named ``A``. Just like the use of modules saves the

383383

authors of different modules from having to worry about each other's global

384384

variable names, the use of dotted module names saves the authors of multi-module

385-

packages like NumPy or the Python Imaging Library from having to worry about

385+

packages like NumPy or Pillow from having to worry about

386386

each other's module names.

387387
388388

Suppose you want to design a collection of modules (a "package") for the uniform