ifd_enumerate: Renamed GPS image.

pull/3/head
Dustin Oprea 2018-06-09 03:20:17 -04:00
parent b9537b58c2
commit 57f66ab0db
3 changed files with 6 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 193 KiB

View File

@ -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 {

View File

@ -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)