-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't rely on mimetypes to load image data (#58)
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.
- Loading branch information
1 parent
94fdf85
commit 592199d
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters