mirror of https://github.com/dsoprea/go-exif.git
ifd_enumerate: Renamed GPS image.
parent
b9537b58c2
commit
57f66ab0db
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 193 KiB |
|
@ -810,6 +810,10 @@ func (ifd *Ifd) GpsInfo() (gi *GpsInfo, err error) {
|
|||
}
|
||||
}()
|
||||
|
||||
|
||||
// TODO(dustin): !! Also add functionality to update the GPS info.
|
||||
|
||||
|
||||
gi = new(GpsInfo)
|
||||
|
||||
if ifd.Ii != GpsIi {
|
||||
|
|
|
@ -301,7 +301,7 @@ func TestIfd_GpsInfo(t *testing.T) {
|
|||
}
|
||||
}()
|
||||
|
||||
filepath := path.Join(assetsPath, "20180428_212312.jpg")
|
||||
filepath := path.Join(assetsPath, "gps.jpg")
|
||||
|
||||
rawExif, err := SearchFileAndExtractExif(filepath)
|
||||
log.PanicIf(err)
|
||||
|
@ -330,7 +330,7 @@ func TestIfd_GpsInfo(t *testing.T) {
|
|||
|
||||
|
||||
func ExampleIfd_GpsInfo() {
|
||||
filepath := path.Join(assetsPath, "20180428_212312.jpg")
|
||||
filepath := path.Join(assetsPath, "gps.jpg")
|
||||
|
||||
rawExif, err := SearchFileAndExtractExif(filepath)
|
||||
log.PanicIf(err)
|
||||
|
|
Loading…
Reference in New Issue