How to access individual EXIF data tags

Explain more clearly how to access individual EXIF data tags
This commit is contained in:
Caleb Jasik
2020-03-03 14:26:37 -06:00
committed by Bjørn Erik Pedersen
parent d5d3bad9a0
commit 26fc74fe31
@@ -101,6 +101,17 @@ TAG: {{ $k }}: {{ $v }}
{{ end }}
```
Or individually access EXIF data with dot access, e.g.:
```go-html-template
{{ with $img.Exif }}
Date: {{ .Date }}
Lat/Long: {{ .Lat }}/{{ .Long }}
Aperture: {{ .Tags.ApertureValue }}
Focal Length: {{ .Tags.FocalLength }}
{{ end }}
```
#### Exif fields
Date