rwcarlsen / goexif

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

Does not work on some JPEG images, cannot locate APP1 header #66

Open PlkMarudny opened 5 years ago

PlkMarudny commented 5 years ago

Attached image that fails on this piece of code (around line 270 of exif.go)

case assumeJPEG: // Locate the JPEG APP1 header. sec, err = newAppSec(jpeg_APP1, r) if err != nil { return nil, err } // Strip away EXIF header. er, err = sec.exifReader()

mz-736278474

TheBellman commented 2 years ago

see #78 - this may be a common problem