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(deps): update rust crate image to 0.25 #203

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 10, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
image dependencies minor 0.24 -> 0.25

Release Notes

image-rs/image (image)

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 asssertion 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.

v0.24.6

Compare Source

  • Add support for QOI.
  • ImageDecoders now expose ICC profiles on supported formats.
  • Add support for BMPs without a file header.
  • Improved AVIF encoder.
  • WebP decoding fixes.

v0.24.5

Compare Source

Structural changes:

  • Increased the minimum supported Rust version (MSRV) to 1.61.
  • Increased the version requirement for the tiff crate to 0.8.0.
  • Increased the version requirement for the jpeg crate to 0.3.0.

Bug fixes:

  • The as_rgb32f function of DynamicImage is now correctly documented.
  • Fixed a crash when decoding ICO images. Added a regression test.
  • Fixed a panic when transforming webp images. Added a regression test.
  • Added a check to prevent integer overflow when calculating file size for BMP
    images. The missing check could panic in debug mode or else set an incorrect
    file size in release mode.
  • Upgraded the PNG image encoder to use the newer PngEncoder::write_image
    instead of the deprecated PngEncoder::encode which did not account for byte
    order and could result in images with incorrect colors.
  • Fixed InsufficientMemory error when trying to decode a PNG image.
  • Fix warnings and CI issues.
  • Typos and links in the documentation have been corrected.

Performance:

  • Added check for dynamic image dimensions before resizing. This improves
    performance in cases where the image does not need to be resized or has
    already been resized.

v0.24.4

Compare Source

New Features:

  • Encoding for webp is now available with the native library. This needs to
    be activate explicitly with the web-encoder feature.
  • exr decoding has gained basic limit support.

Bug fixes:

  • The Iterator::size_hint implementation of pixel iterators has been fixed to
    return the current length indicated by its ExactSizeIterator hint.
  • Typos and bad references in the documentation have been removed.

Performance:

  • ImageBuffer::get_pixel{,_mut} is now marked inline.
  • resize now short-circuits when image dimensions are unchanged.

v0.24.3

Compare Source

New Features:

  • TiffDecoder now supports setting resource limits.

Bug fixes:

  • Fix compile issues on little endian systems.
  • Various panics discovered by fuzzing.

v0.24.2

Structural changes:

  • CI now runs cargo-deny, checking dependent crates to an OSS license list
    and against RUSTSEC advisories.

New Features:

  • The WebP decoder recognizes and decodes images with VP8X header.
  • The DDS decoder recognizes and decodes images with DX10 headers.

Bug fixes:

  • Calling DynamicImage/ImageBuffer's methods write_to and save will now
    work properly even if the backing container is larger than the image layout
    requires. Only the relevant slice of pixel data is passed to the encoder.
  • Fixed a OOM-panic caused by malformed images in the gif decoder.

v0.24.1

Bug Fixes:

  • ImageBuffer::get_pixel_checked would sometimes return the incorrect pixel.
  • PNG encoding would sometimes not recognize unsupported color.

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 Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/image-0.x branch from 674ebec to e9930b0 Compare April 4, 2024 21:56
@renovate renovate bot force-pushed the renovate/image-0.x branch from e9930b0 to 5de73b2 Compare April 4, 2024 21:57
@hoodie hoodie merged commit 000bba6 into main Apr 4, 2024
25 checks passed
@hoodie hoodie deleted the renovate/image-0.x branch April 4, 2024 22:20
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.

1 participant