Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main #1

Closed
wants to merge 78 commits into from
Closed

Merge main #1

wants to merge 78 commits into from

Conversation

radarhere
Copy link

There was a request that you merge the current Pillow main into your branch so that the docs preview in python-pillow#7502 can include python-pillow#7509

Merging this should achieve that.

radarhere and others added 30 commits October 25, 2023 08:52
We already support streamtype=2 to skip producing JPEG tables, but
streamtype=1, which skips everything but the tables, was never implemented.
The streamtype=1 stub code dates to Git pre-history, so it's not
immediately clear why.  Implement the missing support.

jpeg_write_tables() can't resume after a full output buffer (it fails with
JERR_CANT_SUSPEND), so it might seem that Pillow needs to pre-compute the
necessary buffer size.  However, in the normal case of producing an
interchange stream, the tables are written via the same libjpeg codepath
during the first jpeg_write_scanlines() call, and table writes aren't
resumable there either.  Thus, any buffer large enough for the normal case
will also be large enough for a tables-only file.

The streamtype option isn't documented and this commit doesn't change that.
It does add a test though.

Co-authored-by: Andrew Murray <[email protected]>
Updated AppVeyor to Python 3.12
Co-authored-by: Hugo van Kemenade <[email protected]>
libjpeg allows specifying the marker interval either in MCU blocks or in
MCU rows.  Support both, via separate parameters, rather than requiring
callers to do the math.

Co-authored-by: Andrew Murray <[email protected]>
Co-authored-by: Ondrej Baranovič <[email protected]>
Fixed frombytes() for images with a zero dimension
Mention defusedxml and olefile in installation instructions
Docs: link exceptions to Python docs
Docs: link exceptions to Python docs
radarhere and others added 29 commits November 11, 2023 18:08
Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
Update Tests/bench_cffi_access.py

Co-authored-by: Alexander Karpinsky <[email protected]>
Tests: Replace `assert False` with `pytest.fail()`
Release automation: create sdist on CI
Allow configuring JPEG restart marker interval on save
Add Windows 11 tested Pillow versions
Co-authored-by: Hugo van Kemenade <[email protected]>
Windows arm64 dependency cross-compilation fixes
Use --config-settings in external libraries list in installation.rst
@radarhere radarhere closed this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants