Skip to content

image: decode a png file return unknown format #49999

@hmvhamide

Description

@hmvhamide

What version of Go are you using (go version)?

$ go version
go version go1.17 linux/amd64


Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

I open a png image file and decode it in the following code, it returns unknown format.
The image
orig
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions