rwcarlsen / goexif

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

panic: EOF #56

Open vmpartner opened 6 years ago

vmpartner commented 6 years ago

Get error panic: EOF from decode

mpl commented 6 years ago

Hello.

There is not much we can do from this bug report.

Could you please provide more information, such as:

-what method/function the caller was using -what the input file was

ajthemacboy commented 6 years ago

I'm getting this too. Here is one of the photos that causes the error on Google Drive (there are others too, but some taken on the same camera work).

Here is my relevant code:

f, err := os.Open(path); if err != nil { panic(err) }
x, err := exif.Decode(f); if err != nil { panic(err) }

Here is the error:

panic: EOF

goroutine 1 [running]:
main.main.func1(0xc042054180, 0x5d, 0x5415c0, 0xc0420c4000, 0x0, 0x0, 0x0, 0x0)
    D:/dev/golang/2018-05/exifsort/exifsort.go:31 +0x300
path/filepath.walk(0xc042054180, 0x5d, 0x5415c0, 0xc0420c4000, 0x532128, 0x0, 0x0)
    D:/bin/goroot/src/path/filepath/path.go:357 +0x409
path/filepath.walk(0x52f342, 0x24, 0x5415c0, 0xc0420c4000, 0x532128, 0x0, 0xc042081f78)
    D:/bin/goroot/src/path/filepath/path.go:381 +0x2c9
path/filepath.Walk(0x52f342, 0x24, 0x532128, 0xc042081f78, 0xc042054058)
    D:/bin/goroot/src/path/filepath/path.go:403 +0x10d
main.main()
    D:/dev/golang/2018-05/exifsort/exifsort.go:16 +0x49

I am able to read the EXIF with the 'ExifRead' package for Python, and File Explorer on Windows shows EXIF info.

harshit777 commented 5 years ago

panic: EOF

goroutine 1 [running]: main.main() /home/harshit/Projects/twitter-golang/main.go:50 +0x810 exit status 2

Getting this error

tpiros commented 4 years ago

I have the same issue - not sure if this is still being tracked here though ...

taomin597715379 commented 3 years ago

I have the same issue - not sure if this is still being tracked here though ...

TheBellman commented 2 years ago

see #78 - this may be a common problem