Skip to content

Improve format detection#2418

Merged
fintelia merged 3 commits intoimage-rs:mainfrom
fintelia:format-detection
Feb 11, 2025
Merged

Improve format detection#2418
fintelia merged 3 commits intoimage-rs:mainfrom
fintelia:format-detection

Conversation

@fintelia
Copy link
Copy Markdown
Contributor

@fintelia fintelia commented Feb 9, 2025

Allows formats to specify a mask of which bytes to compare against the signature. Particularly useful for WebP and AVIF which place size fields prior to their signatures.

Fixes #2409

@kornelski
Copy link
Copy Markdown
Contributor

The build failure is a bug in clippy: rust-lang/rust-clippy#14189

@fintelia fintelia merged commit 7c504c6 into image-rs:main Feb 11, 2025
@fintelia fintelia deleted the format-detection branch February 11, 2025 04:07
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.

The AVIF generated by this library are not recognized when guessing format on ImageReader

2 participants