Skip to content

Commit

Permalink
MAINT: Add minimum Pillow version requirement (#2022)
Browse files Browse the repository at this point in the history
pypdf uses the `formats` option for `Image.open`, which is not available before Pillow 8.0.0

See https://pillow.readthedocs.io/en/stable/releasenotes/8.0.0.html#api-additions

Closes #2019
  • Loading branch information
stefan6419846 authored Jul 26, 2023
1 parent 11ee648 commit ff884c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Source = "https://github.com/py-pdf/pypdf"
Changelog = "https://pypdf.readthedocs.io/en/latest/meta/CHANGELOG.html"

[project.optional-dependencies]
full = ["PyCryptodome", "Pillow"]
full = ["PyCryptodome", "Pillow>=8.0.0"]
crypto = ["PyCryptodome"]
image = ["Pillow"]
image = ["Pillow>=8.0.0"]
dev = ["black", "pip-tools", "pre-commit<2.18.0", "pytest-cov", "pytest-socket", "flit", "wheel"]
docs = ["sphinx", "sphinx_rtd_theme", "myst_parser"]

Expand Down

0 comments on commit ff884c0

Please sign in to comment.