24 Pull Requests
python-pillow

python-pillow/Pillow

Python Imaging Library (fork)
Python
View on GitHub https://python-pillow.github.io
bug
feature
documentation
tests
enhancement
Contribulator score: 34 Last scored 2026-06-22 08:34:14 UTC
Contributors (1)
  • hugovk

Pull requests (24)

hugovk

Replace python-pillow.org with python-pillow.github.io to python-pillow/Pillow 2024-12-06 20:26:45 UTC

Fixes https://github.com/python-pillow/Pillow/issues/8585.

hugovk

Only use start year in copyright, remove end years to python-pillow/Pillow 2024-12-01 23:21:12 UTC

Over in CPython, after consulting with the PSF's legal representative, we decided to remove the end years from the copyright notices because there's no need to update them each January.

See:

  • https://devguide.python.org/getting-st…
hugovk

Add type hints for ImageMode to python-pillow/Pillow 2023-12-22 16:36:51 UTC

Helps #2625.

I also checked in strict mode:

❯ mypy --strict src/PIL/ImageMode.py
Success: no issues found in 1 source file

We're not ready to enable strict mode for the tox check, and I don't think we need it f…

hugovk

Add `from __future__ import annotations` using Ruff/isort to python-pillow/Pillow 2023-12-21 13:25:31 UTC

Helps https://github.com/python-pillow/Pillow/issues/2625.

Adds the from __future__ import annotations to all files, and will ensure it's added for new files too, so we can use newer type annotations for older Pythons.

For exampl…

hugovk

Use setuptools_scm for dynamic versioning to python-pillow/Pillow 2023-12-19 14:59:50 UTC

Following on from https://github.com/python-pillow/Pillow/pull/7616.

I had a go setting it up on the weekend, I'm going to pause it for now, but opening a draft to show how it looks. We don't necessarily need to finish this off, and c…

hugovk

ImageMath: Inline `isinstance` check to python-pillow/Pillow 2023-12-18 18:22:02 UTC

_isconstant() is short and only called once, we might as well inline it, it's also quicker:

❯ python -m timeit -s "def _isconstant(v): return isinstance(v, (int, float))" "_isconstant(12.34)"
5000000 loops, best of 5: 5...
hugovk

Check types with mypy to python-pillow/Pillow 2023-12-18 17:21:41 UTC

Helps #2625.

Run mypy to check type hints:

tox -e mypy

Some good advice here:

  • https://mypy.readthedocs.io/en/stable/existing_code.html

So let's start off small with just the src directory, and exclude lots …

hugovk

Update pre-commit to fix Sphinx Lint to python-pillow/Pillow 2023-12-12 19:02:15 UTC

There was a change in Hatchling that needed a new Sphinx Lint release, let's update to fix pre-commit.

Re: https://github.com/sphinx-contrib/sphinx-lint/pull/106

hugovk

Use list comprehensions to create transformed lists to python-pillow/Pillow 2023-12-03 22:29:47 UTC

Changes proposed in this pull request:

  • Replace some for loops with list comprehensions
  • Identified with ruff . --select PERF401: "PERF401 Use a list comprehension to create a transformed list"
  • https://docs.astral.sh/ruff/r…
hugovk

Travis CI: Upgrade PyPy from 5.8.0 to 6.0 to python-pillow/Pillow 2018-12-06 17:22:03 UTC

Changes proposed in this pull request:

  • PyPy 6.0 is now available on Travis CI
  • However, right now you have to specify the version exactly
  • For example, pypy2.7-6.0 for 6.0, because pypy still points to 5.8.0
  • See https…
hugovk

Docs: Add page of deprecations and removals to python-pillow/Pillow 2018-12-06 14:04:58 UTC

Changes proposed in this pull request:

  • Pytest has a page for deprecations and removals
  • It makes it clear what is going away, what has gone away, and what to use instead, wi…
hugovk

Don't test on EOL Fedora 25 to python-pillow/Pillow 2017-12-20 07:02:32 UTC

Fedora 25 went EOL on 2017-12-12:

image

As of https://github.com/python-pillow/Pillow/pull/2895 we now test on all the supporte…

hugovk

Test: avoid random noise failure to python-pillow/Pillow 2017-12-19 13:42:06 UTC

Just occasionally (e.g. the last master build) test_effect_noise will fail because the random noise will put the same value in these pixels:

self.assertNo...
hugovk

Specify compatible Python versions for pip to python-pillow/Pillow 2017-12-04 12:35:18 UTC

python_requires allows pip/setuptools to install the correct Pillow release for the user's current Python version.

More info: [setuptools](https://setuptools.readthedocs.io/en/latest/setuptools.html?highlight=python_requires#new-and…

hugovk

Build: Refactor dependency installation to python-pillow/Pillow 2016-12-24 20:48:07 UTC

Changes proposed in this pull request:

  • Refactor common stuff from install_openjpeg.sh and install_webp.sh into a new download-and-extract.sh: means updating new version numbers in fewer places.

  • Use this new download-and-extra…

hugovk

Build: Python 3.6 is out to python-pillow/Pillow 2016-12-23 20:54:38 UTC

Python 3.6.0 was officially released today and is available on Travis CI.

https://www.python.org/downloads/release/python-360/

hugovk

Reinstate Python+C coverage and send to Coveralls to python-pillow/Pillow 2016-12-21 20:16:00 UTC

Possible fix for #2299.

pip install -e . causes problems with the collection of C+Python coverage.

Removing it and instead installing olefile explicitly on Travis CI fixes it.

hugovk

Increase epsilon for FreeType 2.7 to python-pillow/Pillow 2016-12-12 13:34:03 UTC

Fixes #2116.

Changes proposed in this pull request:

  • The text weight looks a bit different with FreeType 2.7 compared to the test images created with an older version
  • Increase the epsilon value so tests pass

Here's how the…

hugovk

'make linkcheck' fixes to python-pillow/Pillow 2015-12-07 20:21:42 UTC

Some fixes for things found when running cd docs && make linkcheck.


The output of the command after these fixes is:

$ make linkcheck
sphinx-build -b linkcheck -d _build/doctrees   . _build/linkcheck
Running Sphi...
hugovk

Test ImageFont getters to python-pillow/Pillow 2015-12-07 19:06:20 UTC

Simple test like in https://github.com/python-pillow/Pillow/issues/1540#issuecomment-157741134.

Closes https://github.com/python-pillow/Pillow/issues/1540.

hugovk

Consistent multiline spacing and tests, with extra space to python-pillow/Pillow 2015-12-06 19:52:05 UTC

This fixes the inconsistent multiline spacing reported in https://github.com/python-pillow/Pillow/issues/1540.

It includes the fix from @wiredfool and I updated the tests. I checked the baseline-to-baseline heights in the new images a…

hugovk

Consistent multiline spacing and tests to python-pillow/Pillow 2015-12-06 19:36:42 UTC

This fixes the inconsistent multiline spacing reported in https://github.com/python-pillow/Pillow/issues/1540.

It includes the fix from @wiredfool and I updated the tests.


I noticed the lines are a bit close together by defa…

hugovk

Travis CI: sudo apt-get update to python-pillow/Pillow 2015-12-06 15:42:04 UTC

Workaround to close https://github.com/python-pillow/Pillow/issues/1571.

Adding sudo apt-get update before installing fixes it.

Travis say:

> The apt…

hugovk

Release note review to python-pillow/Pillow 2014-12-04 09:23:19 UTC

Review edits for https://github.com/python-pillow/Pillow/pull/1032

  • English changes.
  • Renamed filename to 2.7.0 because we may have a 2.7.1.
  • Similarly, refer to 2.7.0 in the document rather than 2.7, and "Pillow 2.7.0" just s…
  • Sponsored by  DNSimple,  Octobox &  Bugsnag
  • About
  • How to contribute?
  • Contributor pledge
  • API
  • Unsubscribe
    •  English
    •  Español
    •  Ελληνικά
    •  Português do Brasil
    •  Suomi
    •  Français
    •  Deutsch
    •  Русский
    •  Українська
    •  ไทย
    •  Italiano
    •  Norsk bokmål
    •  தமிழ்
    •  Tr
    •  简体中文
    •  正體中文
    •  日本語
    •  Čeština
    •  हिंदी
    •  Polski
    • Translate into your language!