{{ if and .Tags.Make .Tags.Model }} {{ end }} {{ with .Tags.LensModel }} {{ end }} {{- $hasLocation := and .Lat .Long -}} {{ if $hasLocation -}} {{- end -}} {{ if and .Tags.PixelXDimension .Tags.PixelYDimension -}} {{ end }} {{ if or .Tags.ISOSpeedRatings .Tags.FocalLengthIn35mmFilm .Tags.FNumber .Tags.ExposureTime }} {{ end }}
{{- $make := .Tags.Make -}} {{- $model := .Tags.Model -}} {{- if in $model $make -}} {{ .Tags.Model }} {{- else -}} {{ .Tags.Make }} {{ .Tags.Model }} {{- end -}}
{{ . }}
{{ $lat := float .Lat }}{{ $latDir := cond (eq $lat 0) "" (cond (gt $lat 0) "N" "S") }} {{ .Lat | lang.FormatNumber (cond (ne $lat 0) 3 0) }}º{{ $latDir }}, {{ $long := float .Long }}{{ $longDir := cond (eq $long 0) "" (cond (gt $long 0) "E" "W") }} {{ .Long | lang.FormatNumber (cond (ne $long 0) 3 0) }}º{{ $longDir }} {{- $widthpx := .Tags.PixelXDimension -}} {{- $heightpx := .Tags.PixelYDimension -}} {{- if and (gt $widthpx 0) (gt $heightpx 0) -}} {{- $megapixels := div (mul $widthpx $heightpx) 1e6 -}} {{ $megapixels | lang.FormatNumber 0 }} MP{{ $widthpx }} × {{ $heightpx }} {{- end -}}
{{ with .Tags.ISOSpeedRatings }}ISO {{ . }}{{ end }} {{- $focalLength := .Tags.FocalLengthIn35mmFilm | default .Tags.FocalLength -}} {{- with $focalLength -}}{{ . }} mm{{- end -}} {{ with .Tags.FNumber }}{{ printf "ƒ%0.1f" . }}{{ end }} {{- with $exposureTime := .Tags.ExposureTime -}} {{- if in $exposureTime "/" -}} {{ . }} s {{- else -}} 1/{{ printf "%.0f" (div 1.0 (float $exposureTime)) }} s {{- end -}} {{- end -}}