We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version go1.17 linux/amd64
go env
$ go env
I open a png image file and decode it in the following code, it returns unknown format. The image is attached. Code: https://go.dev/play/p/op3ILPNJmCw
I expect the code to finish without error. Because this is a valid png file and can be opened with image editors like GIMP.
The following error printed: error decoding image image: unknown format
The text was updated successfully, but these errors were encountered:
Please see the package docs and example. https://pkg.go.dev/image
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I open a png image file and decode it in the following code, it returns unknown format.

The image
is attached.
Code: https://go.dev/play/p/op3ILPNJmCw
What did you expect to see?
I expect the code to finish without error. Because this is a valid png file and can be opened with image editors like GIMP.
What did you see instead?
The following error printed:
error decoding image image: unknown format
The text was updated successfully, but these errors were encountered: