rwcarlsen / goexif

Decode embedded EXIF meta data from image files.
BSD 2-Clause "Simplified" License
627 stars 134 forks source link

exif decode return errors.errorString{s:"EOF"} #78

Open bodhiye opened 4 years ago

bodhiye commented 4 years ago

file, err := os.Open("/tmp/rotation.jpeg") assert.Nil(t, err) defer file.Close() _, err = exif.Decode(file) assert.Nil(t, err)

hsmade commented 3 years ago

Check if you have the file open in another place. If so, that might have seeked forward, so the pointer is at the end.

itmeze commented 2 years ago

Having same issue. I can reproduce using example from README. I am on go 1.17 and ubuntu 21.10

TheBellman commented 2 years ago

I would say this is the same error as for #66 and #56 - looking at func newAppSec() it appears to never find the target data it is seeking, and iterates to the end of file before throwing an EOF.

I'm also not sure if the author is still maintaining this package?