{{ if and .Tags.Make .Tags.Model }} {{ end }} {{ with .Tags.LensModel -}} {{ end }} {{- $hasLocation := and .Lat .Long -}} {{- $hasPixelDimensions := and .Tags.PixelXDimension .Tags.PixelYDimension -}} {{ if $hasLocation -}} {{- end -}} {{ if $hasPixelDimensions -}} {{ end }} {{ if or .Tags.ISOSpeedRatings .Tags.FocalLengthIn35mmFilm .Tags.FocalLength .Tags.FNumber .Tags.ExposureTime }} {{ with .Tags.ISOSpeedRatings -}} {{ else }} {{- end -}} {{ end }}
{{- $make := .Tags.Make -}} {{- $model := .Tags.Model -}} {{- if in $model $make -}} {{ .Tags.Model }} {{- else -}} {{ .Tags.Make }} {{ .Tags.Model }} {{- end -}}
{{ . }}
{{ $latitude := float .Lat }} {{ $latitudeDirection := cond (eq $latitude 0) "" (cond (gt $latitude 0) "N" "S") }} {{ $latitude | lang.FormatNumber (cond (ne $latitude 0) 3 0) }}º{{ $latitudeDirection }} , {{ $longitude := float .Long }} {{ $longitudeDirection := cond (eq $longitude 0) "" (cond (gt $longitude 0) "E" "W") }} {{ $longitude | lang.FormatNumber (cond (ne $longitude 0) 3 0) }}º{{ $longitudeDirection }} {{- $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 -}}
ISO {{ . }}-- {{- with .Tags.FocalLengthIn35mmFilm | default .Tags.FocalLength -}} {{ printf "%3.2f" (float .) }} mm {{- end -}} {{ with .Tags.FNumber }}{{ printf "ƒ%0.1f" (float .) }}{{ end }} {{- with $exposureTime := .Tags.ExposureTime -}} {{- if in $exposureTime "/" -}} {{ . }} s {{- else -}} 1/{{ printf "%.0f" (div 1.0 (float $exposureTime)) }} s {{- end -}} {{- end -}}