./graphics/py-Pillow, Python Imaging Library (Fork)

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 12.2.0, Package name: py313-Pillow-12.2.0, Maintainer: pkgsrc-users

Pillow is the "friendly" PIL fork.

The Python Imaging Library (PIL) adds image processing capabilities to your
Python environment.

This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.


Required to run:
[graphics/tiff] [graphics/freetype2] [devel/py-setuptools] [graphics/openjpeg] [graphics/lcms2] [graphics/libwebp] [graphics/libimagequant] [devel/py-olefile] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-test-runner]

Master sites:

Filesize: 45886.542 KB

Version history: (Expand)


CVS history: (Expand)


   2026-04-02 10:50:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-Pillow: updated to 12.2.0

12.2.0

Update 12.2.0 release notes
Add loader plugins: AMOS abk, Atari Degas, 40+ more obscure formats via Netpbm
Update Python versions
Jeffrey A. Clark -> Jeffrey 'Alex' Clark
Add release notes for
Add Amiga Workbench .info loader to 3rd party plugins list
Merge PFM documentation into PPM
Update macOS tested Pillow versions
Fix CVE number
   2026-02-12 07:24:22 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-Pillow: update to 12.1.1.

Security

CVE 2021-25289: Fix OOB write with invalid tile extents

Check that tile extents do not use negative x or y offsets when
decoding or encoding, and raise an error if they do, rather than
allowing an OOB write.

An out-of-bounds write may be triggered when opening a specially
crafted PSD image. This only affects Pillow >= 10.3.0. Reported by
Yarden Porat.

Other changes

Patch libavif for svt-av1 4.0 compatibility

A patch has been added to depends/install_libavif.sh, to allow
libavif 1.3.0 to be compatible with the recently released svt-av1
4.0.0.
   2026-01-10 16:06:25 by Roland Illig | Files touched by this commit (2)
Log message:
graphics/py-Pillow: sync DESCR with reality
   2026-01-07 15:26:55 by Ryo ONODERA | Files touched by this commit (1)
Log message:
graphics/py-Pillow: Depend on lang/python*

py-Pillow does not depend on Python interpreter from lang/python*
previously. It is apparently incorrect.
   2026-01-02 14:52:26 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-Pillow: updated to 12.1.0

12.1.0

Deprecations

Deprecate getdata(), in favour of new get_flattened_data()

Documentation

Specify APNG duration type when opening
Added release notes for
Update ImageMorph documentation
Docs: update major bump cadence
Add release notes for
Updated Ubuntu version
Update macOS tested Pillow versions

Dependencies

Update harfbuzz to 12.3.0
Update xz to 5.8.2
Updated libjpeg-turbo to 3.1.3
Updated zlib-ng to 2.3.2
Updated libpng to 1.6.53
Update actions/checkout action to v6
Update dependency mypy to v1.19.0
Updated libpng to 1.6.51
Updated brotli to 1.2.0
Update libimagequant to 4.4.1
Update zlib-ng to 2.3.1, except on manylinux2014 aarch64
Updated harfbuzz to 12.2.0
Update github-actions

Testing

Replace pre-commit with prek
Test PyQt6 on Python 3.14 on Windows
Test 32-bit Windows on Windows Server 2022
Correct variable type
Fix ResourceWarnings in selftest.py
Fix testing good P mode BMP images
Test Python 3.15 pre-release
Test ImageFont.ImageFont, in case freetype2 is not supported
Add Fedora 43
Remove Fedora 41

Type hints

Add ImageFile context manager
Assert fp is not None
Added return type to ImageFile _close_fp()
Use different variables for Image and ImageFile instances
Correct variable type
Improve type hints
Use different variables for Image and ImageFile instances
Added type hints
Correct getitem return type

Other changes

Simplify band splitting
Support saving APNG float durations
Allow 1 mode images in MorphOp
Use minimum supported Python version for Lint
Allow for duplicate font variation styles
Call parent verify method
Return LUT from LutBuilder build_default_lut()
Simplify WebP code
Use unsigned long for DWORD
Cast to UINT32 before shifting bits
[pre-commit.ci] pre-commit autoupdate
Allow window ID to be passed to ImageGrab.grab() on macOS
Apply encoder options when saving multiple PNG frames
Read all non-zero transparency from mode 1 PNG images as 255
Support writing IFD, SIGNED_RATIONAL and InkNames TIFF tags
Remove unused modes
Correct allocating new color to RGBA palette
Close image on ImageFont exception
Reapply "Use macos-latest for iOS arm64 simulator"
Escape period in pre-commit-config
Add Apache-2.0 notice to IcoImagePlugin
[pre-commit.ci] pre-commit autoupdate
Simplify code now that I;16* modes are the only IMAGING_TYPE_SPECIAL
Remove BytesIO from DdsImagePlugin
Fix ZeroDivisionError in DdsImagePlugin
Fix warnings
   2025-10-23 22:40:24 by Thomas Klausner | Files touched by this commit (2999)
Log message:
*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by \ 
/usr/pkg/lib/libglib-2.0.so.0 not defined
   2025-10-16 11:32:11 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-Pillow: updated to 12.0.0

12.0.0

Removals

Remove support for FreeType <= 2.9.0
Drop support for Python 3.9
Remove deprecations for Pillow 12.0.0

Deprecations

Deprecate Image._show
Deprecate ImageCmsProfile product_name and product_info

Documentation

ImagingHistogramInstance can use two bands
Update 12.0.0 release notes
Added ImageDraw alpha channel examples
Update Python version
Updated macOS tested Pillow versions
Add GitHub profile link to release notes
Split versionadded info
Document ImageFile.MAXBLOCK
Updated macOS version in CI targets
Fix typos
Added "Colors" to concepts
Update macOS tested Pillow versions
Thanks, folks!
Setup nit: "fork" should be lowercased
   2025-08-31 00:46:51 by Thomas Klausner | Files touched by this commit (1355)
Log message:
*: recursive bump for tiff growing lerc dependency