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 file format detection #5

Open
lourot opened this issue Nov 1, 2022 · 0 comments
Open

Improve file format detection #5

lourot opened this issue Nov 1, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@lourot
Copy link
Member

lourot commented Nov 1, 2022

For now the library detects the format of a file (JPEG, PNG, ...) based on its extension. What if a file has no extension? The file could even have the wrong extension, for example some CDNs cache and deliver in the WebP format files that are originally JPEG or PNG.

The library should detect the format of a file by looking at its content instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant