forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Closed
Merge main #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>
for more information, see https://pre-commit.ci
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]>
Removed Fedora 37
Fixed frombytes() for images with a zero dimension
Mention defusedxml and olefile in installation instructions
Add CVE-2023-44271 to release notes
Docs: link exceptions to Python docs
Docs: link exceptions to Python docs
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]>
Test Fedora 39
Tests: Replace `assert False` with `pytest.fail()`
Release automation: create sdist on CI
Co-authored-by: Andrew Murray <[email protected]>
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
Co-authored-by: Hugo van Kemenade <[email protected]>
Use --config-settings in external libraries list in installation.rst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.