--- title: Exif description: Applicable to JPEG, PNG, TIFF, and WebP images, returns an EXIF object containing image metadata. categories: [] keywords: [] params: functions_and_methods: returnType: exif.ExifInfo signatures: [RESOURCE.Exif] --- {{% include "/_common/methods/resource/global-page-remote-resources.md" %}} Applicable to JPEG, PNG, TIFF, and WebP images, the `Exif` method on an image `Resource` object returns an [EXIF] object containing image metadata. ## Methods ### Date (`time.Time`) Returns the image creation date/time. Format with the [`time.Format`] function. ### Lat (`float64`) Returns the GPS latitude in degrees. ### Long (`float64`) Returns the GPS longitude in degrees. ### Tags (`exif.Tags`) Returns a collection of the available EXIF tags for this image. You may include or exclude specific tags from this collection. See [configure imaging]. [configure imaging]: /configuration/imaging/#exif-data ## Examples To list the creation date, location, and EXIF tags: ```go-html-template {{ with resources.Get "images/a.jpg" }} {{ with .Exif }}

Date: {{ .Date }}

Lat/Long: {{ .Lat }}/{{ .Long }}

{{ with .Tags }}

Tags

{{ range $k, $v := . }} {{ end }}
TagValue
{{ $k }}{{ $v }}
{{ end }} {{ end }} {{ end }} ``` To list specific values: ```go-html-template {{ with resources.Get "images/a.jpg" }} {{ with .Exif }} {{ end }} {{ end }} ``` [exif]: https://en.wikipedia.org/wiki/Exif [`time.Format`]: /functions/time/format/