Skip to content

unexpected EOF #1

Description

@unlimitedcoder2

When trying to decode a ppm I get that error, however when I write the data to a .ppm file my image reader reads the image fine.

f, _ := os.Create(fileName)
f.Write(b.Bytes())
f.Close()

reader := bytes.NewReader(b.Bytes())
_, err := pnm.Decode(reader)

if err != nil {
	fmt.Println(err)
	return
}

any ideas as to why I might be getting this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions