Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: add Validate functions to image/jpeg, image/png etc. #18098
(This is inspired by this Russian StackOverflow question about image validation in Go.)
As of Go 1.7.3 there is no way to know if a file is actually a valid JPEG or PNG image without loading it into an
This proposal is for discussion about whether it's possible and practical to provide
Any solution here should also consider #8055 at the same time, as their solutions will likely involve similar mechanisms.
If #8055 were solved, this "
Then the only new API is e.g.