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

fix: bump pillow from 10.3.0 to 11.0.0 #18

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 12, 2024

Bumps pillow from 10.3.0 to 11.0.0.

Release notes

Sourced from pillow's releases.

11.0.0

https://pillow.readthedocs.io/en/stable/releasenotes/11.0.0.html

Removals

Deprecations

Changes

... (truncated)

Changelog

Sourced from pillow's changelog.

11.0.0 (2024-10-15)

  • Update licence to MIT-CMU #8460 [hugovk]

  • Conditionally define ImageCms type hint to avoid requiring core #8197 [radarhere]

  • Support writing LONG8 offsets in AppendingTiffWriter #8417 [radarhere]

  • Use ImageFile.MAXBLOCK when saving TIFF images #8461 [radarhere]

  • Do not close provided file handles with libtiff when saving #8458 [radarhere]

  • Support ImageFilter.BuiltinFilter for I;16* images #8438 [radarhere]

  • Use ImagingCore.ptr instead of ImagingCore.id #8341 [homm, radarhere, hugovk]

  • Updated EPS mode when opening images without transparency #8281 [Yay295, radarhere]

  • Use transparency when combining P frames from APNGs #8443 [radarhere]

  • Support all resampling filters when resizing I;16* images #8422 [radarhere]

  • Free memory on early return #8413 [radarhere]

  • Cast int before potentially exceeding INT_MAX #8402 [radarhere]

  • Check image value before use #8400 [radarhere]

  • Improved copying imagequant libraries #8420 [radarhere]

  • Use Capsule for WebP saving #8386 [homm, radarhere]

  • Fixed writing multiple StripOffsets to TIFF #8317 [Yay295, radarhere]

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Bump Pillow from version 10.3.0 to 11.0.0, introducing several enhancements and bug fixes. Key improvements include support for LONG8 offsets in TIFF writing, enhanced resampling filters, and improved handling of transparency in APNGs. Bug fixes address potential division by zero and NULL dereference issues. The license is updated to MIT-CMU.

Bug Fixes:

  • Prevent division by zero in Pillow operations.
  • Fix dereference before checking for NULL in ImagingTransformAffine.

Enhancements:

  • Support writing LONG8 offsets in AppendingTiffWriter.
  • Use ImageFile.MAXBLOCK when saving TIFF images.
  • Support ImageFilter.BuiltinFilter for I;16* images.
  • Use transparency when combining P frames from APNGs.
  • Support all resampling filters when resizing I;16* images.
  • Use Capsule for WebP saving.

Chores:

  • Update licence to MIT-CMU.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 12, 2024
Copy link

sourcery-ai bot commented Dec 12, 2024

Reviewer's Guide by Sourcery

This PR updates the Pillow package from version 10.3.0 to 11.0.0. This is a major version upgrade that includes several breaking changes, deprecations, and improvements. The update primarily focuses on removing deprecated features, enhancing image processing capabilities, and improving memory management.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Major version upgrade of the Pillow package with breaking changes
  • Drop support for Python 3.8 and PyPy3.9
  • Remove deprecated features including PSFile, PyAccess, and USE_CFFI_ACCESS
  • Update license to MIT-CMU
requirements.txt
Enhanced image processing capabilities
  • Add support for all resampling filters when resizing I;16* images
  • Improve TIFF image handling with MAXBLOCK and LONG8 offsets support
  • Add transparency support when combining P frames from APNGs
  • Update EPS mode for images without transparency
requirements.txt
Improved memory management and security
  • Implement better memory handling with early returns
  • Add checks for image values before use
  • Fix potential integer overflow issues
  • Prevent division by zero errors
requirements.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.3.0 to 11.0.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@10.3.0...11.0.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/pillow-11.0.0 branch from e505259 to 33de921 Compare December 12, 2024 18:34
@CrzyHAX91
Copy link
Owner

Bump Pillow from version 10.3.0 to 11.0.0, introducing several enhancements and bug fixes. Key improvements include support for LONG8 offsets in TIFF writing, enhanced resampling filters, and improved handling of transparency in APNGs. Bug fixes address potential division by zero and NULL dereference issues. The license is updated to MIT-CMU.

Bug Fixes:

Prevent division by zero in Pillow operations.
Fix dereference before checking for NULL in ImagingTransformAffine.
Enhancements:

Support writing LONG8 offsets in AppendingTiffWriter.
Use ImageFile.MAXBLOCK when saving TIFF images.
Support ImageFilter.BuiltinFilter for I;16* images.
Use transparency when combining P frames from APNGs.
Support all resampling filters when resizing I;16* images.
Use Capsule for WebP saving.
Chores:

Update licence to MIT-CMU.

@CrzyHAX91 CrzyHAX91 merged commit 78127d3 into master Dec 12, 2024
3 of 5 checks passed
@CrzyHAX91 CrzyHAX91 deleted the dependabot/pip/pillow-11.0.0 branch December 12, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant