blissd / fotema

Photo gallery for Linux
29 stars 6 forks source link

Bump fast_image_resize from 3.0.4 to 4.0.0 #13

Closed dependabot[bot] closed 1 month ago

dependabot[bot] commented 1 month ago

Bumps fast_image_resize from 3.0.4 to 4.0.0.

Release notes

Sourced from fast_image_resize's releases.

[4.0.0] - 2024-05-13

Added

  • Added Gaussian filter for convolution algorithm.
  • Method PixelType::size() was made public.
  • Added new image containers:
    • ImageRef
    • TypedImageRef
    • TypedImage
    • TypedCroppedImage
    • TypedCroppedImageMut
    • CroppedImage
    • CroppedImageMut

Fixed

  • Fixed dividing image by alpha channel.

Changed

A lot of breaking changes have been done in this release:

  • Structures ImageView and ImageViewMut have been removed. They always did unnecessary memory allocation to store references to image rows. Instead of these structures, the ImageView and ImageViewMut traits have been added. The crate accepts any image container that provides these traits.
  • Also, traits IntoImageView and IntoImageViewMut have been added. They allow you to write runtime adapters to convert your particular image container into something that provides ImageView/ImageViewMut trait.
  • Resizer now has two methods for resize (dynamic and typed):
    • resize() accepts references to impl IntoImageView and impl IntoImageViewMut;
    • resize_typed() accepts references to impl ImageView and impl ImageViewMut.
  • Resize methods also accept the options argument. With the help of this argument, you can specify:
    • resize algorithm (default: Lanczos3);
    • how to crop the source image;
    • whether to multiply the source image by the alpha channel and divide the destination image by the alpha channel. By default, Resizer multiplies and divides by alpha channel images with U8x2, U8x4, U16x2 and U16x4 pixels.
  • Argument resize_alg was removed from Resizer::new() method, use options argument of methods to resize instead.
  • The MulDiv implementation has been changed in the same way as Resizer. It now has two versions of each method: dynamic and typed.
  • Type of image dimensions has been changed from NonZeroU32 into u32. Now you can create and use zero-sized images.
  • Image (embedded implementation of image container) moved from root of the crate into module images.
  • Added optional feature "image".

... (truncated)

Changelog

Sourced from fast_image_resize's changelog.

[4.0.0] - 2024-05-13

Added

  • Added Gaussian filter for convolution algorithm.
  • Method PixelType::size() was made public.
  • Added new image containers:
    • ImageRef
    • TypedImageRef
    • TypedImage
    • TypedCroppedImage
    • TypedCroppedImageMut
    • CroppedImage
    • CroppedImageMut

Fixed

  • Fixed dividing image by alpha channel.

Changed

A lot of breaking changes have been done in this release:

  • Structures ImageView and ImageViewMut have been removed. They always did unnecessary memory allocation to store references to image rows. Instead of these structures, the ImageView and ImageViewMut traits have been added. The crate accepts any image container that provides these traits.
  • Also, traits IntoImageView and IntoImageViewMut have been added. They allow you to write runtime adapters to convert your particular image container into something that provides ImageView/ImageViewMut trait.
  • Resizer now has two methods for resize (dynamic and typed):
    • resize() accepts references to impl IntoImageView and impl IntoImageViewMut;
    • resize_typed() accepts references to impl ImageView and impl ImageViewMut.
  • Resize methods also accept the options argument. With the help of this argument, you can specify:
    • resize algorithm (default: Lanczos3);
    • how to crop the source image;
    • whether to multiply the source image by the alpha channel and divide the destination image by the alpha channel. By default, Resizer multiplies and divides by alpha channel images with U8x2, U8x4, U16x2 and U16x4 pixels.
  • Argument resize_alg was removed from Resizer::new() method, use options argument of methods to resize instead.
  • The MulDiv implementation has been changed in the same way as Resizer. It now has two versions of each method: dynamic and typed.
  • Type of image dimensions has been changed from NonZeroU32 into u32. Now you can create and use zero-sized images.
  • Image (embedded implementation of image container) moved from root of the crate into module images.

... (truncated)

Commits
  • 95d7d5c chore: Release
  • e4101d1 Fixed some texts
  • 14cca8b Fixed doc-strings and dependencies.
  • a138db3 Merge branch 'refs/heads/main' into dev
  • ab5eeaf Fixed some texts
  • f87f80e Fixed implementation of TypedCroppedImage, TypedCroppedImageMut, `Cropped...
  • 89dea77 Merge pull request #26 from RyanBluth/main
  • 22a1b5f Fixed readme
  • bae75c8 Bump image to 0.25
  • ee2ec47 - Renamed CroppedImage into TypedCroppedImage.
  • Additional commits viewable in compare view


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 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)
blissd commented 1 month ago

FIR v4 has breaking changes.

dependabot[bot] commented 1 month ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.