Pillow has dropped support for Python 3.6, which reached end-of-life on 2021-12-23.
PILLOW_VERSION
has been removed. Use __version__
instead.
Support for FreeType 2.7 has been removed; FreeType 2.8 is the minimum supported.
We recommend upgrading to at least FreeType 2.10.4, which fixed a severe vulnerability introduced in FreeType 2.6 (CVE-2020-15999
).
The command
parameter has been removed. Use a subclass of :pyPIL.ImageShow.Viewer
instead.
Image._showxv
has been removed. Use :py~PIL.Image.Image.show
instead. If custom behaviour is required, use :py~PIL.ImageShow.register
to add a custom :py~PIL.ImageShow.Viewer
class.
IOError
was merged into OSError
in Python 3.3. So, ImageFile.raise_ioerror
has been removed. Use ImageFile.raise_oserror
instead.
TODO
TODO
Support has been added for the "title" argument in :py~PIL.ImageShow.UnixViewer.DisplayViewer
, so that when im.show()
or :py.ImageShow.show()
use the display
command line tool, the "title" argument will also now be supported, e.g. im.show(title="My Image")
and ImageShow.show(im, title="My Image")
.
TrueType fonts may now be pickled and unpickled. For example:
import pickle
from PIL import ImageFont
font = ImageFont.truetype("arial.ttf", size=30)
pickled_font = pickle.dumps(font, protocol=pickle.HIGHEST_PROTOCOL)
# Later...
unpickled_font = pickle.loads(pickled_font)
TODO
TODO