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

Don't rely on mimetypes to load image data #58

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

kevinaboos
Copy link
Member

Mimetypes are not always correct. Since it's cheap to check the first few bytes of the image data array to determine the image file format, we just always do that up front, and ignore the mimetype entirely.

Mimetypes are not always correct. Since it's cheap to check the
first few bytes of the image data array to determine the image file format,
we just always do that up front, and ignore the mimetype entirely.
@kevinaboos kevinaboos merged commit 592199d into project-robius:main Mar 15, 2024
1 check passed
@kevinaboos kevinaboos deleted the image_loading branch March 15, 2024 06:30
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.

1 participant