Skip to content
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

unexpected EOF #1

Open
unlimitedcoder2 opened this issue Aug 31, 2020 · 1 comment
Open

unexpected EOF #1

unlimitedcoder2 opened this issue Aug 31, 2020 · 1 comment

Comments

@unlimitedcoder2
Copy link

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?

@jbuchbinder
Copy link
Owner

Could you attach or link to the image data so I can test it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants