mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
parent
e2d66e3218
commit
6dbbe6dd3a
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,7 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"math/big"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
@ -140,6 +141,12 @@ func (d *Decoder) Decode(r io.Reader) (ex *ExifInfo, err error) {
|
|||
|
||||
if !d.noLatLong {
|
||||
lat, long, _ = x.LatLong()
|
||||
if math.IsNaN(lat) {
|
||||
lat = 0
|
||||
}
|
||||
if math.IsNaN(long) {
|
||||
long = 0
|
||||
}
|
||||
}
|
||||
|
||||
walker := &exifWalker{x: x, vals: make(map[string]any), includeMatcher: d.includeFieldsRe, excludeMatcher: d.excludeFieldsrRe}
|
||||
|
|
Loading…
Reference in a new issue