Pillow
Pillow copied to clipboard
Python Imaging Library (Fork)
Adds some type safety when comparing modes, and replaces a lot of string comparisons with enum comparisons.
Resolves #8963. Alternative to #8974 Originally, additional `im.save()` parameters were applied to every frame when saving. Then, #8483 added a generic way to set specific options when saving subsequent frames...
Fixes #8963. Alternative to #9001 Changes proposed in this pull request: * Use TIFF encoderinfo of first image as default for appended images
### What did you do? Save a multiframe tiff image with group3 compression and PhotometricInterpretation WhiteIsZero. ### What did you expect to happen? Settings applied to all frames. ``` pageaaa.tif:...
This is part of https://github.com/python-pillow/Pillow/pull/8362 - I'm hoping to break down that PR into easier-to-review chunks. 1. A tile's `args` might be a tuple, string or None. https://github.com/python-pillow/Pillow/blob/c8d98d56a02e0729f794546d6f270b3cea5baecf/src/PIL/ImageFile.py#L101-L105 Assert that...
With ruff-pre-commit 0.11.10, https://github.com/astral-sh/ruff-pre-commit/pull/124 was included, which prefers `ruff-check` to the `ruff` ID in pre-commit.
### What did you do? `make debug` or `make install` ### What did you expect to happen? Expect compilation to happen across all the cores, taking ~ 2-3 seconds. ###...
Fixes https://github.com/python-pillow/Pillow/issues/8965. Alternative to https://github.com/python-pillow/Pillow/pull/8970 and https://github.com/python-pillow/Pillow/pull/8966 Changes proposed in this pull request: - Override `__float__` method in IFDRational - Make IFDRational behave more like a float when the denominator.
This is a follow-up to https://github.com/python-pillow/Pillow/pull/8692, based on @wiredfool's feedback. Previously there was one memory arena for all threads, making it the bottleneck for multi-threaded performance. As the number of...
This is part of #8362 - I'm hoping to break down that PR into easier-to-review chunks. ImageFile's `fp` may be `None`. ```pycon >>> from PIL import Image >>> im =...