Update Rust crate image to 0.25 #31

Open
renovatebot wants to merge 1 commit from renovate/image-0.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
image dependencies minor 0.24 -> 0.25

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

image-rs/image (image)

v0.25.6

Compare Source

Features:

  • Improved format detection (#​2418)
  • Implement writing ICC profiles for JPEG and PNG images (#​2389)

Bug fixes:

  • JPEG encoding bugfix (#​2387)
  • Expanded ICO format detection (#​2434)
  • Fixed EXR bug with NaNs (#​2381)
  • Various documentation improvements

v0.25.5

Compare Source

Features:

  • Added support for decoding 10-bit and 12-bit AVIF
  • Initial, opt-in serde support for an enum. This may be extended to other types in the future.

Bug fixes:

  • Multiple bug fixes in AVIF decoding
  • The rayon feature now correctly toggles the use of rayon when encoding AVIF. (Previously it would be either always on or always off depending on the version of the ravif crate in your dependency tree.)
  • "jfif" file extension for JPEG images is now recognized

v0.25.4

Compare Source

Features:

  • Much faster decoding of lossless WebP due to a variety of optimizations. Our benchmarks show 2x to 2.5x improvement.
  • Added support for orientation metadata, so that e.g. smartphone camera images could be displayed correctly:
    • Added ImageDecoder::orientation() and implemented orientation metadata extraction for JPEG, WebP and TIFF formats
    • Added DynamicImage::apply_orientation() to apply the orientation to an image
  • Added support for extracting Exif metadata from images via ImageDecoder::exif_metadata(), and implemented it for JPEG and WebP formats
  • Added ImageEncoder::set_icc_profile() and implemented it for WebP format. Pull requests with implementations for other formats are welcome.
  • Added DynamicImage::fast_blur() for a linear-time approximation of Gaussian blur, which is much faster at larger blur radii

Bug fixes:

  • Fixed some APNG images being decoded incorrectly
  • Fixed the iterator over animated WebP frames to return None instead of an error when the end of the animation is reached

v0.25.3

Compare Source

Yanked! This version accidentally missed a commit that should have been
included with the release. The Orientation struct should be in the
appropriate module instead of the top-level. This release won't be supported.

v0.25.2

Compare Source

Features:

  • Added the HDR encoder to supported formats in generic write methods with the
    hdr feature enabled. Supports 32-bit float RGB color only, for now.
  • When cloning ImageBuffer, DynamicImage and Frame the existing buffer
    will now be reused if possible.
  • Added image::ImageReader as an alias.
  • Implement ImageEncoder for HdrEncoder.

Structural changes

  • Switch from byteorder to byteorder-lite, consolidating some casting
    unsafety to bytemuck.
  • Many methods on DynamicImage and buffers gained #[must_use] indications.

Bug fixes:

  • Removed test data included in the crate archive.
  • The WebP animation decoder stops when reaching the indicate frame count.
  • Fixed bugs in the bmp decoder.
  • Format support gated on the exr feature now compiles in isolation.

v0.25.1

Compare Source

Bug fixes:

  • Fixed corrupt JPEG output when attempting to encode images containing an alpha
    channel.
  • Only accept ".ff" file extension for farbfeld images.
  • Correct farbfeld feature flag for ImageFormat::{reading_enabled, writing_enabled}.
  • Disable strict mode for JPEG decoder.
  • Add nasm feature to optionally enable faster AVIF encoding.

v0.25.0

Compare Source

Breaking changes:

  • Added BufRead + Seek bound on many decoders.
  • Use ExtendedColorType instead of ColorType when encoding.
  • Removed ImageOutputFormat, GenericImageView::bounds, and several other
    deprecated items.
  • Removed incremental decoding support and changed ImageDecoder so the trait
    is object safe.
  • Pixel types are now repr(transparent) rather than repr(C).
  • Made color_quant dependency optional.
  • Renamed some feature flags.

Structural changes:

  • Increased MSRV to 1.67.1

Codec changes:

  • Switched to image-webp for WebP encoding.
  • Switched to zune-jpeg for JPEG decoding.
  • Made the HDR decoder produce f32 images.
  • Removed DXT encoding and decoding support.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [image](https://github.com/image-rs/image) | dependencies | minor | `0.24` -> `0.25` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>image-rs/image (image)</summary> ### [`v0.25.6`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0256) [Compare Source](https://github.com/image-rs/image/compare/v0.25.5...v0.25.6) Features: - Improved format detection ([#&#8203;2418](https://github.com/image-rs/image/pull/2418)) - Implement writing ICC profiles for JPEG and PNG images ([#&#8203;2389](https://github.com/image-rs/image/pull/2389)) Bug fixes: - JPEG encoding bugfix ([#&#8203;2387](https://github.com/image-rs/image/pull/2387)) - Expanded ICO format detection ([#&#8203;2434](https://github.com/image-rs/image/pull/2434)) - Fixed EXR bug with NaNs ([#&#8203;2381](https://github.com/image-rs/image/pull/2381)) - Various documentation improvements ### [`v0.25.5`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0255) [Compare Source](https://github.com/image-rs/image/compare/v0.25.4...v0.25.5) Features: - Added support for decoding 10-bit and 12-bit AVIF - Initial, opt-in serde support for an enum. This may be extended to other types in the future. Bug fixes: - [Multiple bug fixes in AVIF decoding](https://github.com/image-rs/image/pull/2373) - The `rayon` feature now correctly toggles the use of `rayon` when encoding AVIF. (Previously it would be either always on or always off depending on the version of the `ravif` crate in your dependency tree.) - "jfif" file extension for JPEG images is now recognized ### [`v0.25.4`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0254) [Compare Source](https://github.com/image-rs/image/compare/v0.25.3...v0.25.4) Features: - Much faster decoding of lossless WebP due to a variety of optimizations. Our benchmarks show 2x to 2.5x improvement. - Added support for orientation metadata, so that e.g. smartphone camera images could be displayed correctly: - Added `ImageDecoder::orientation()` and implemented orientation metadata extraction for JPEG, WebP and TIFF formats - Added `DynamicImage::apply_orientation()` to apply the orientation to an image - Added support for extracting Exif metadata from images via `ImageDecoder::exif_metadata()`, and implemented it for JPEG and WebP formats - Added `ImageEncoder::set_icc_profile()` and implemented it for WebP format. Pull requests with implementations for other formats are welcome. - Added `DynamicImage::fast_blur()` for a linear-time approximation of Gaussian blur, which is much faster at larger blur radii Bug fixes: - Fixed some APNG images being decoded incorrectly - Fixed the iterator over animated WebP frames to return `None` instead of an error when the end of the animation is reached ### [`v0.25.3`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0253) [Compare Source](https://github.com/image-rs/image/compare/v0.25.2...v0.25.3) Yanked! This version accidentally missed a commit that should have been included with the release. The `Orientation` struct should be in the appropriate module instead of the top-level. This release won't be supported. ### [`v0.25.2`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0252) [Compare Source](https://github.com/image-rs/image/compare/v0.25.1...v0.25.2) Features: - Added the HDR encoder to supported formats in generic write methods with the `hdr` feature enabled. Supports 32-bit float RGB color only, for now. - When cloning `ImageBuffer`, `DynamicImage` and `Frame` the existing buffer will now be reused if possible. - Added `image::ImageReader` as an alias. - Implement `ImageEncoder` for `HdrEncoder`. Structural changes - Switch from `byteorder` to `byteorder-lite`, consolidating some casting unsafety to `bytemuck`. - Many methods on `DynamicImage` and buffers gained `#[must_use]` indications. Bug fixes: - Removed test data included in the crate archive. - The WebP animation decoder stops when reaching the indicate frame count. - Fixed bugs in the `bmp` decoder. - Format support gated on the `exr` feature now compiles in isolation. ### [`v0.25.1`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0251) [Compare Source](https://github.com/image-rs/image/compare/v0.25.0...v0.25.1) Bug fixes: - Fixed corrupt JPEG output when attempting to encode images containing an alpha channel. - Only accept ".ff" file extension for farbfeld images. - Correct farbfeld feature flag for `ImageFormat::{reading_enabled, writing_enabled}`. - Disable strict mode for JPEG decoder. - Add nasm feature to optionally enable faster AVIF encoding. ### [`v0.25.0`](https://github.com/image-rs/image/blob/HEAD/CHANGES.md#Version-0250) [Compare Source](https://github.com/image-rs/image/compare/v0.24.9...v0.25.0) Breaking changes: - Added `BufRead` + `Seek` bound on many decoders. - Use `ExtendedColorType` instead of `ColorType` when encoding. - Removed `ImageOutputFormat`, `GenericImageView::bounds`, and several other deprecated items. - Removed incremental decoding support and changed `ImageDecoder` so the trait is object safe. - Pixel types are now `repr(transparent)` rather than `repr(C)`. - Made color_quant dependency optional. - Renamed some feature flags. Structural changes: - Increased MSRV to 1.67.1 Codec changes: - Switched to image-webp for WebP encoding. - Switched to zune-jpeg for JPEG decoding. - Made the HDR decoder produce f32 images. - Removed DXT encoding and decoding support. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40Mi4zIiwidXBkYXRlZEluVmVyIjoiNDAuNDIuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
error: failed to load manifest for workspace member `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/scrap`
referenced by workspace at `/tmp/renovate/repos/gitea/test-actions/rustdesk/Cargo.toml`

Caused by:
  failed to load manifest for dependency `hbb_common`

Caused by:
  failed to read `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/hbb_common/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: Cargo.lock ``` Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace error: failed to load manifest for workspace member `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/scrap` referenced by workspace at `/tmp/renovate/repos/gitea/test-actions/rustdesk/Cargo.toml` Caused by: failed to load manifest for dependency `hbb_common` Caused by: failed to read `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/hbb_common/Cargo.toml` Caused by: No such file or directory (os error 2) ```
renovatebot force-pushed renovate/image-0.x from 921e180a04
Some checks failed
renovate/artifacts Artifact file update failure
to e85aaeb36b
Some checks failed
renovate/artifacts Artifact file update failure
2025-06-06 00:21:41 +00:00
Compare
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
test-actions/rustdesk!31
No description provided.