From 26fc74fe31efb6ca57ee30de7bfab0cae02df040 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Tue, 3 Mar 2020 14:26:37 -0600 Subject: [PATCH] How to access individual EXIF data tags Explain more clearly how to access individual EXIF data tags --- .../en/content-management/image-processing/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/en/content-management/image-processing/index.md b/content/en/content-management/image-processing/index.md index 0b9bcf323..9efb3b6bf 100644 --- a/content/en/content-management/image-processing/index.md +++ b/content/en/content-management/image-processing/index.md @@ -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