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

Check magic bytes for more image formats #93

Merged
merged 1 commit into from
Dec 17, 2022

Conversation

qbnu
Copy link
Contributor

@qbnu qbnu commented Dec 12, 2022

Checks if a file is a PNG, GIF, or TIFF image using the magic bytes in the header before falling back to checking the file extension. This fixes #78.

@sylikc
Copy link
Owner

sylikc commented Dec 17, 2022

This is really awesome. Thanks for investigating the headers and bytes info @qbnu

@sylikc sylikc self-assigned this Dec 17, 2022
@sylikc sylikc added the enhancement New feature or request label Dec 17, 2022
@sylikc sylikc mentioned this pull request Dec 17, 2022
@sylikc sylikc merged commit e82da58 into sylikc:master Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot open webp files
2 participants