How to access individual EXIF data tags

Explain more clearly how to access individual EXIF data tags
This commit is contained in:
Caleb Jasik authored and Bjørn Erik Pedersen committed 2020-03-03 21:28:32 +01:00
1 parent d5d3bad9a0
commit 26fc74fe31
1 file changed
+11
@@ -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