-
Notifications
You must be signed in to change notification settings - Fork 52
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
Consider using http.DetectContentType to inter the image type #13
Comments
If you're happy with the minimum version of libvips being 7.40.0+, I recommend using |
That's a good idea and probably better than Go |
Great, thanks Tomás.
|
That's absolutely fantastic. In fact, I experimented some troubles yesterday with that because my original |
@lovell I've finally supported your proposal: Thanks! |
Probably this algorithm will be more reliable than checking the first chunk of bytes of the image:
http://golang.org/src/net/http/sniff.go?s=648:690#L11
The text was updated successfully, but these errors were encountered: