Permalink
Browse files

Merge pull request #280 from anarcat/more-stats

include camera model and shorten exif stats
  • Loading branch information...
saimn committed Jan 8, 2018
2 parents 22a1b61 + 2d5cd23 commit 5dfe0fff6a92764c272d11b8e786043d2dbc6e2c
@@ -19,6 +19,21 @@ a:hover {
color: #dadada;
}
/* remove SMALLCAPS style and dotted underline from some browsers */
abbr[title] {
text-decoration: none;
font-variant: none;
border-bottom: none;
}
abbr[title="exposure"]::after { content: "s" }
abbr[title="film speed"]::before { content: "ISO " }
abbr[title="aperture"]::before { content: "f/" }
abbr[title="focal length"]::after { content: "mm" }
abbr[title="camera make and model"], abbr[title="date"] {
display: block;
}
/* header */
header {
padding: 1em 0;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -78,19 +78,23 @@ <h2>
{% if media.description %}<br>{{ media.description }}{% endif %}
{%- if media.exif %}
<br>
{% if media.exif.iso %}ISO: {{ media.exif.iso }}, {% endif %}
{% if media.exif.focal %}Focal: {{ media.exif.focal }}, {% endif %}
{% if media.exif.exposure %}Exposure: {{ media.exif.exposure }}, {% endif %}
{% if media.exif.fstop %}Fstop: {{ media.exif.fstop }}{% endif %}
<div class='film-meta'>
{% if media.exif.iso %}<abbr title='film speed'>{{ media.exif.iso }}</abbr> {% endif %}
{% if media.exif.exposure %}<abbr title='exposure'>{{ media.exif.exposure }}</abbr> {% endif %}
{% if media.exif.fstop %}<abbr title='aperture'>{{ media.exif.fstop }}</abbr> {% endif %}
{% if media.exif.focal %}<abbr title='focal length'>{{ media.exif.focal }}</abbr> {% endif %}
</div>
{% if media.exif.gps %}
<br/>Location: <a href='https://www.openstreetmap.org/?mlat={{
<a title='location' href='https://www.openstreetmap.org/?mlat={{
media.exif.gps.lat }}&amp;mlon={{ media.exif.gps.lon}}&amp;zoom=12&amp;layers=M' target='_blank' class='map'
>{{ 'N{:.6f}'.format(media.exif.gps.lat) if media.exif.gps.lat > 0 else 'S{:.6f}'.format(-media.exif.gps.lat) }}
{{ 'E{:.6f}'.format(media.exif.gps.lon) if media.exif.gps.lon > 0 else 'W{:.6f}'.format(-media.exif.gps.lon) }}</a>
{% endif %}
{% if media.exif.Make or media.exif.Model %}
<abbr title='camera make and model'>{{ media.exif.Make }} {{ media.exif.Model }}</abbr>
{% endif %}
{% if media.exif.datetime %}
<br>Date: {{ media.exif.datetime }}
<abbr title='date'>{{ media.exif.datetime }}</abbr>
{% endif %}
{% endif %}
{%- endmacro %}

0 comments on commit 5dfe0ff

Please sign in to comment.