2022-10-19 07:38:26 -07:00
|
|
|
|
<div class="photo-params">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<table>
|
2023-01-30 12:26:06 -08:00
|
|
|
|
{{ if and .Tags.Make .Tags.Model }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
<thead>
|
2023-04-08 19:31:02 -07:00
|
|
|
|
<td class="make-model" colspan=4>
|
|
|
|
|
{{- $make := .Tags.Make -}}
|
|
|
|
|
{{- $model := .Tags.Model -}}
|
|
|
|
|
{{- if in $model $make -}}
|
|
|
|
|
{{ .Tags.Model }}
|
|
|
|
|
{{- else -}}
|
|
|
|
|
{{ .Tags.Make }} {{ .Tags.Model }}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
</td>
|
2022-10-19 07:38:26 -07:00
|
|
|
|
</thead>
|
2023-01-30 12:26:06 -08:00
|
|
|
|
{{ end }}
|
2023-04-08 19:31:02 -07:00
|
|
|
|
{{ with .Tags.LensModel }}
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan=4 class="lens">{{ . }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{ end }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
<tr>
|
2023-04-08 19:31:02 -07:00
|
|
|
|
{{- $hasLocation := and .Lat .Long -}}
|
|
|
|
|
{{ if $hasLocation -}}
|
|
|
|
|
<td colspan=2 class="location">
|
2022-10-19 07:38:26 -07:00
|
|
|
|
{{ $lat := float .Lat }}{{ $latDir := cond (eq $lat 0) "" (cond (gt $lat 0) "N" "S") }}
|
|
|
|
|
<data class="latitude" value="{{ $lat }}">{{ .Lat | lang.FormatNumber (cond (ne $lat 0) 3 0) }}º{{ $latDir }}</data>,
|
|
|
|
|
{{ $long := float .Long }}{{ $longDir := cond (eq $long 0) "" (cond (gt $long 0) "E" "W") }}
|
|
|
|
|
<data class="longitude" value="{{ $long }}">{{ .Long | lang.FormatNumber (cond (ne $long 0) 3 0) }}º{{ $longDir }}</data>
|
2022-08-27 09:17:42 -07:00
|
|
|
|
</td>
|
2023-04-08 19:31:02 -07:00
|
|
|
|
{{- end -}}
|
|
|
|
|
{{ if and .Tags.PixelXDimension .Tags.PixelYDimension -}}
|
|
|
|
|
<td colspan={{ if $hasLocation }}2{{ else }}4{{ end }} class="size">
|
|
|
|
|
{{- $widthpx := .Tags.PixelXDimension -}}
|
|
|
|
|
{{- $heightpx := .Tags.PixelYDimension -}}
|
|
|
|
|
{{- if and (gt $widthpx 0) (gt $heightpx 0) -}}
|
|
|
|
|
{{- $megapixels := div (mul $widthpx $heightpx) 1e6 -}}
|
|
|
|
|
<data class="megapixels nobreak" value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data>
|
|
|
|
|
•
|
|
|
|
|
<span class="nobreak"><data class="width">{{ $widthpx }}</data> × <data class="height">{{ $heightpx }}</data></span>
|
|
|
|
|
{{- end -}}
|
2022-08-27 09:17:42 -07:00
|
|
|
|
</td>
|
2023-01-30 12:26:06 -08:00
|
|
|
|
{{ end }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
</tr>
|
2023-01-30 12:26:06 -08:00
|
|
|
|
{{ if or .Tags.ISOSpeedRatings .Tags.FocalLengthIn35mmFilm .Tags.FNumber .Tags.ExposureTime }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
<tr class="exposure-attributes">
|
2022-08-27 09:17:42 -07:00
|
|
|
|
<td class="iso">{{ with .Tags.ISOSpeedRatings }}ISO {{ . }}{{ end }}</td>
|
2023-04-08 19:31:02 -07:00
|
|
|
|
<td class="focal-length">
|
|
|
|
|
{{- $focalLength := .Tags.FocalLengthIn35mmFilm | default .Tags.FocalLength -}}
|
|
|
|
|
{{- with $focalLength -}}{{ . }} mm{{- end -}}
|
|
|
|
|
</td>
|
2023-04-23 22:02:11 +09:00
|
|
|
|
<td class="f-number">{{ with .Tags.FNumber }}{{ printf "ƒ%0.1f" . }}{{ end }}</td>
|
2023-04-08 19:31:02 -07:00
|
|
|
|
<td class="exposure-time">
|
|
|
|
|
{{- with $exposureTime := .Tags.ExposureTime -}}
|
|
|
|
|
{{- if in $exposureTime "/" -}}
|
|
|
|
|
{{ . }} s
|
|
|
|
|
{{- else -}}
|
|
|
|
|
1/{{ printf "%.0f" (div 1.0 (float $exposureTime)) }} s
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
</td>
|
2022-10-19 07:38:26 -07:00
|
|
|
|
</tr>
|
2023-01-30 12:26:06 -08:00
|
|
|
|
{{ end }}
|
2022-10-19 07:38:26 -07:00
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|