Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 2, 2025

Bumps png from 0.17.16 to 0.18.0.

Changelog

Sourced from png's changelog.

0.18.0

API Breaking Changes

  • Removed deprecated Info::encode and Encoder::set_srgb methods.
  • Improved the compression settings API for encoding.
  • Decoder now requires a reader that implements Seek and BufRead traits.
  • Bump bitflags dependency to 2.0.
  • StreamingDecoder::update now takes a structured UnfilterBuf argument instead of a direct reference to a vector. This allows in-place decompression. There is a public constructor for UnfilterBuf.
  • The methods Decoder::output_buffer_size and output_line_size now return Option<usize> to reflect that these calculations no longer overflow on some targets where the required buffers can not be represented in the address space. They return the mathematically correct size where possible.
  • The Decoded enum returned from StreamingDecoder::update was simplified to no longer contains any chunk payload data. Instead, it now contains only chunk events where every chunk that was started will eventually be ended by ChunkComplete, BadAncillaryChunk or SkippedAncillaryChunk.
  • Ancillary chunks, i.e. those not critical to decoder interpretation of the file, which fail to parse are now terminated with a BadAncillaryChunk event but no longer returned a DecodingError. This includes text chunks as well as many metadata chunks (except for fcTL that we deem crucial to the parser's understanding of the image sequence in an APNG despite being technically ancillary).

Additions

  • Added Reader::read_row method.
  • Add support for parsing eXIf chunk.
  • Treat most auxiliary chunk errors as benign.
  • Added splat_interlaced_row, which implements an alternative method for merging Adam7 interlaced lines into the output buffer that is more suitable for the presentation of progressive states of the buffer.
  • Added Adam7Variant documenting the various methods for applying interlaced rows and to prepare an API to progressively read frames through Decoder.

Changes

  • The decoding of Adam7 interlaced data is now much faster.
  • The acTL chunk is now ignored when it is invalid, instead of producing errors while reading or decoding the following APNG chunks.
  • The requirement of the fcTL chunk for the default image to match the IHDR's indicate image size is now enforced.
  • More minor format errors in auxiliary chunks are now ignored by the decoder, instead disregarding the malformed chunk.
  • Adam7 Interlacing on 32-bit targets now handles some cases correctly that previously wrote some bytes to the wrong pixel indices due to overflows.
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)

Bumps [png](https://github.com/image-rs/image-png) from 0.17.16 to 0.18.0.
- [Changelog](https://github.com/image-rs/image-png/blob/master/CHANGES.md)
- [Commits](https://github.com/image-rs/image-png/commits)

---
updated-dependencies:
- dependency-name: png
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 2, 2025
@CBenoit
Copy link
Member

CBenoit commented Sep 2, 2025

Hi @RRRadicalEdward! Do you think you could fix the compilation for the newer version of png? 🙏

@CBenoit CBenoit enabled auto-merge (squash) September 2, 2025 17:50
@CBenoit CBenoit merged commit 21fa028 into master Sep 3, 2025
10 checks passed
@CBenoit CBenoit deleted the dependabot/cargo/png-0.18.0 branch September 3, 2025 06:58
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 rust Pull requests that update Rust code

Development

Successfully merging this pull request may close these issues.

3 participants