Skip to content

fix(deps): update rust crate image to 0.25.0#21

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/image-0.x
Open

fix(deps): update rust crate image to 0.25.0#21
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/image-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Aug 9, 2023

This PR contains the following updates:

Package Type Update Change
image dependencies minor 0.24.60.25.0

Release Notes

image-rs/image (image)

v0.25.10

Compare Source

v0.25.9

Compare Source

Features:

  • Support extracting XMP metadata from PNG, JPEG, GIF, WebP and TIFF files (#​2567, #​2634, #​2644)
  • Support reading IPTC metadata from PNG and JPG files (#​2611)
  • Support reading ICC profile from GIF files (#​2644)
  • Allow setting a specific DEFLATE compression level when writing PNG (#​2583)
  • Initial support for 16-bit CMYK TIFF files (#​2588)
  • Allow extracting the alpha channel of a Pixel in a generic way (#​2638)

Structural changes:

  • EXR format decoding now only uses multi-threading via Rayon when the rayon feature is enabled (#​2643)
  • Upgraded zune-jpeg to 0.5.x, ravif to 0.12.x, gif to 0.14.x
  • pnm: parse integers in PBM/PGM/PPM headers without allocations (#​2620)
  • Replace doc_auto_cfg with doc_cfg (#​2637)

Bug fixes:

  • Do not encode empty JPEG images (#​2624)
  • tga: reject empty images (#​2614)
  • tga: fix orientation flip for color mapped images (#​2607)
  • tga: adjust colormap lookup to match tga 2.0 spec (#​2608)

v0.25.8

Compare Source

Re-release of 0.25.7

Fixes:

  • Reverted a signature change to load_from_memory that lead to large scale
    type inference breakage despite being technically compatible.
  • Color conversion Luma to Rgb used incorrect coefficients instead of broadcasting.

v0.25.7

Compare Source

Features:

  • Added an API for external image format implementations to register themselves as decoders for a specific format in image (#​2372)
  • Added CICP awarenes via moxcms to support color spaces (#​2531). The support for transforming is limited for now and will be gradually expanded.
  • You can now embed Exif metadata when writing JPEG, PNG and WebP images (#​2537, #​2539)
  • Added functions to extract orientation from Exif metadata and optionally clear it in the Exif chunk (#​2484)
  • Serde support for more types (#​2445)
  • PNM encoder now supports writing 16-bit images (#​2431)

Structural changes:

  • Increased MSRV to 1.85.0 (from 1.78.0)

API improvements:

  • save, save_with_format, write_to and write_with_encoder methods on DynamicImage now automatically convert the pixel format when necessary instead of returning an error (#​2501)
  • Added DynamicImage::has_alpha() convenience method
  • Implemented TryFrom<ExtendedColorType> for ColorType (#​2444)
  • Added const HAS_ALPHA to trait Pixel
  • Unified the error for unsupported encoder colors (#​2543)
  • Added a hooks module to customize builtin behavior, register_format_detection_hook and register_decoding_hook for the determining format of a file and selecting an ImageDecoder implementation respectively. (#​2372)

Performance improvements:

  • Gaussian blur (#​2496) and box blur (#​2515) are now faster
  • Improve compilation times by avoiding unnecessary instantiation of generic functions (#​2468, #​2470)

Bug fixes:

  • Many improvements to image format decoding: TIFF, WebP, AVIF, PNG, GIF, BMP, TGA
  • Fixed GifEncoder::encode() ignoring the speed parameter and always using the slowest speed (#​2504)
  • .pnm is now recognized as a file extension for the PNM format (#​2559)

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.

v0.24.9

Compare Source

Structural changes:

  • Relicense to MIT OR Apache-2.0
  • Increase MSRV 1.63.0

New features:

  • Support limits in PNG animation decoding.
  • Added offsets to SubImage to compensate for the now-deprecated bounds call
    from GenericImageView.

Bug fixes:

  • Correct limit tests for TIFF.
  • Avoid overflow in gif::Decoder::buffer_size.
  • Return error instead of using assertions for Avif decoder unsupported or
    invalid bit depth.

v0.24.8

Compare Source

New features:

  • Added pure-Rust lossless WebP encoding.
  • Added DynamicImage::new method.
  • Added PngDecoder::gamma_value method.
  • Added ImageFormat::{reading_enabled, writing_enabled, all}.
  • TGA encoder now supports RLE encoding.
  • Add rayon parallel iterators behind an optional rayon feature.
  • Support CMYK TIFF images.
  • Implement From<DynamicImage> for all image types.

Bug fixes:

  • Fix decoding pngs with invalid text chunks.
  • Handle non-fatal error dav1d::Error::Again.
  • Do not round floats in interpolate.
  • PNM decoder now scales samples according to specified maximum.
  • Fix wrong implementation of unsharpen filter.
  • Fix GifDecoder::with_limits to raise an error when limits are exceeded.

v0.24.7

Compare Source

New features:

  • Added {ImageBuffer, DynamicImage}::write_with_encoder to simplify writing
    images with custom settings.
  • Expose ICC profiles stored in tiff and webp files.
  • Added option to set the background color of animated webp images.
  • New methods for sampling and interpolation of GenericImageViews

Bug fixes:

  • Fix panic on empty dxt.
  • Fix several panics in webp decoder.
  • Allow unknown chunks at the end of webp files.

Configuration

📅 Schedule: (UTC)

  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title fix(deps): update rust crate image to 0.24.7 fix(deps): update rust crate image to 0.24.8 Jan 13, 2024
@renovate renovate Bot force-pushed the renovate/image-0.x branch from 48afa28 to 94b7554 Compare January 13, 2024 22:38
@renovate renovate Bot changed the title fix(deps): update rust crate image to 0.24.8 fix(deps): update rust crate image to 0.24.9 Feb 23, 2024
@renovate renovate Bot force-pushed the renovate/image-0.x branch from 94b7554 to e4a9efd Compare February 23, 2024 06:13
@renovate renovate Bot force-pushed the renovate/image-0.x branch from e4a9efd to b9753d6 Compare March 10, 2024 22:44
@renovate renovate Bot changed the title fix(deps): update rust crate image to 0.24.9 fix(deps): update rust crate image to 0.25.0 Mar 10, 2024
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 10, 2024

⚠ 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: src-tauri/Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path src-tauri/Cargo.toml --package image@0.24.6 --precise 0.25.1
    Updating crates.io index
error: failed to select a version for the requirement `image = "^0.24"`
candidate versions found which didn't match: 0.25.1
location searched: crates.io index
required by package `tao v0.16.2`
    ... which satisfies dependency `tao = "^0.16.0"` (locked to 0.16.2) of package `wry v0.24.3`
    ... which satisfies dependency `wry = "^0.24.1"` (locked to 0.24.3) of package `tauri-runtime-wry v0.14.0`
    ... which satisfies dependency `tauri-runtime-wry = "^0.14.0"` (locked to 0.14.0) of package `tauri v1.4.1`
    ... which satisfies dependency `tauri = "^1.4"` (locked to 1.4.1) of package `e_tool v0.0.1 (/tmp/renovate/repos/github/qiuqfang/eTool/src-tauri)`
perhaps a crate was updated and forgotten to be re-vendored?

@renovate renovate Bot force-pushed the renovate/image-0.x branch from b9753d6 to 3057ea3 Compare March 31, 2024 04:54
@renovate renovate Bot changed the title fix(deps): update rust crate image to 0.25.0 fix(deps): update rust crate image to 0.25.1 Mar 31, 2024
@renovate renovate Bot force-pushed the renovate/image-0.x branch from 3057ea3 to 5277b5f Compare May 5, 2024 09:03
@renovate renovate Bot changed the title fix(deps): update rust crate image to 0.25.1 fix(deps): update rust crate image to 0.25.0 May 5, 2024
@renovate renovate Bot force-pushed the renovate/image-0.x branch from 5277b5f to b04b09c Compare March 13, 2026 14:45
@renovate renovate Bot force-pushed the renovate/image-0.x branch from b04b09c to e716bd2 Compare May 18, 2026 11:46
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.

0 participants