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

Improve format detection #2418

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Improve format detection #2418

merged 3 commits into from
Feb 11, 2025

Conversation

fintelia
Copy link
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
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
31 of 32 checks passed
@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