Commit Graph

813 Commits

Author SHA1 Message Date
Antoine Beaupré
2d5cd23da3 move layout and metadata suffixes to CSS
This way this can be override by client-side CSS or more easily controled through the theme
2018-01-06 22:03:58 -05:00
Antoine Beaupré
8ea0336520 remove dotted line completely, too noisy 2018-01-06 21:44:44 -05:00
Antoine Beaupré
24564d5f2a move CSS change to theme-specific file
This way our changes will survive eventual normalize.css updates.
2018-01-06 21:43:58 -05:00
Antoine Beaupré
48c064d9f1 use abbr to explain what the metadata fields are
Keep the normal font for browsers that switch to smallcaps, as
suggested by MDN:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr

We remove the dotted line normalization currently configured in the
`normalize.css` file because it actually creates a *second* dotted
line in Firefox 57. The directive there is `text-decoration` which is
what we disable here instead. It looks better without any dotted line.

We leave the trailing commas and strings like `ISO`, `f/` or `mm` but
those could also be managed through CSS. `<br>` tags may similarly be
managed better through CSS as well.
2018-01-03 13:35:04 -05:00
Antoine Beaupré
2e324123b6 include camera model and shorten exif stats
This adds a line to show the camera model and make, if available, and
reorders and cleans up the EXIF parameters extracted so they are more
readable for photographers (who are the ones who care about this
anyways).

Note that, as a photographer, I know what "Fstop" mean, but I would
expect "exposure" or the common f/X.Y notation. The "Focal" label
means nothing to me: "Focal length" would mean something, but it's
long - and what are the units? Just using "mm" here clarifies any
possible misunderstanding.

I have found this format to be way more readable. The following:

    ISO: 3200, Focal: 50, Exposure: 1/40, Fstop: 4.0
    Date: dimanche, 31. décembre 2017

Becomes:

    ISO 3200, 1/40s f/4.0, 50mm
    FUJIFILM X-T2
    dimanche, 31. décembre 2017

Now: dropping the explicit labels may be controversial, but I would
argue this is what markup is for. We could wrap those elements in
named <span> or <acronym> elements to provide more information through
mouse-over or CSS.
2017-12-31 17:57:15 -05:00
Simon Conseil
7e35d1fa40 Merge pull request #270 from matelakat/make-extensions-configurable
Refactor: configurable file extensions
2017-11-08 21:21:14 +01:00
Mate Lakat
4f22c02ed6 Refactor: configurable file extensions
This change enables people to configure what file extensions should be
recognised as images and videos by setting:

`img_extensions` and `video_extensions`
2017-11-08 21:04:59 +01:00
Simon Conseil
da91ae7197 Merge pull request #267 from EdwardBetts/spelling
correct spelling mistakes
2017-10-23 20:32:40 +02:00
Edward Betts
311d203e3a correct spelling mistakes 2017-10-23 08:18:08 +01:00
Simon Conseil
2e9f0bd589 Merge pull request #263 from 3onyc/feature-fit-centering
Add config option for tweaking how thumbnails should be cropped
2017-10-10 15:08:34 +02:00
3onyc
f32e4f1729 Add config option for tweaking how thumbnails should be cropped 2017-10-10 13:38:00 +02:00
Simon Conseil
c083b84ae6 Merge pull request #258 from matze/correct-portrait-resize
Resize portrait images to same size as landscape
2017-10-09 14:26:43 +02:00
Matthias Vogelgesang
0a62cb38fd Test portrait/landscape resize correctness 2017-10-09 14:09:49 +02:00
Matthias Vogelgesang
7ab13308b3 Resize portrait images to same size as landscape
With the current approach images are resized along the width, which means images
in portrait mode are substantially smaller than landscape images. This change
resizes portrait images along the height so that they will cover the exact same
area.
2017-09-19 21:15:54 +02:00
Simon Conseil
838d94eb61 Reformat issue numbers in changelog 2017-09-17 22:44:20 +02:00
Simon Conseil
4bc598f68e Add changelog for version 1.4 2017-09-17 22:42:41 +02:00
Simon Conseil
ff4c9ec7fc Avoid warnings about duplicate target name 2017-09-17 22:36:11 +02:00
Simon Conseil
4396316f89 Replace sphinxcontrib.issuetracker with sphinx_issues
The first one was broken with recent docutils/sphinx version, and anyway
it was doing too many requests to the github API.
2017-09-17 22:28:47 +02:00
Simon Conseil
f6a8687a0a Merge pull request #257 from franek/fix-default-lang
Set html lang attribute based upon locale
2017-09-13 14:12:50 +02:00
François D
c00b4f40b4 Add ``html_language`` setting in order to be used by html templates 2017-09-13 13:46:29 +02:00
Simon Conseil
aaf645fa9a Merge pull request #256 from saimn/fix-ffmpeg
Fix install of ffmpeg since Travis upgrade to trusty
2017-09-02 23:40:05 +02:00
Simon Conseil
a26132ec58 Fix install of ffmpeg since Travis upgrade to trusty 2017-09-02 23:26:59 +02:00
Simon Conseil
83cc6f409d Don't fail if GPSInfo cannot be used (fixes #251) 2017-07-07 00:06:28 +02:00
Simon Conseil
245f9e5b18 Merge pull request #243 from xouillet/jinja_filters
Permit filters.py file in template dir to define custom jinja filters
2017-03-12 01:13:53 +01:00
Simon Conseil
c775557681 Remove the exif cache for test to avoid side effect when building the
test gallery
2017-03-12 01:01:08 +01:00
Simon Conseil
9560f84ce4 Show progress for "Collecting albums" only for terminal output 2017-03-12 00:35:17 +01:00
Alexandre Chataignon
17c7a567e4 Added documentation for custom templates and improved code readability 2017-03-12 00:34:13 +01:00
Simon Conseil
23d0ede35f Merge pull request #245 from jasuarez/colorbox-csp
Improve CSP compatibility with colorbox theme
2017-03-11 23:26:48 +01:00
Juan A. Suarez Romero
a217af356d colorbox: move inline script code to its own file
Main purpose is to fix problems with Content Security Policy, that makes
difficult to work with inline code.
2017-03-05 19:01:35 +01:00
Juan A. Suarez Romero
b488f4cf45 colorbox: remove an inline javascript
This was done for Galleria theme in commit 96d6623.
2017-03-05 18:47:20 +01:00
Simon Conseil
c3c0f7cdcb Merge pull request #242 from xouillet/optim_properties
Optimize properties
2017-03-03 22:20:16 +01:00
Alexandre Chataignon
cd31b90343 Update AUTHORS 2017-03-03 15:50:19 +01:00
Alexandre Chataignon
d4857ffd3f Fixed typo, changed os.path.isfile to isfile for consistency 2017-03-03 15:48:36 +01:00
Simon Conseil
e6a28ef479 Merge pull request #241 from xouillet/random_thumbnail
Added random thumbnail property for album
2017-03-03 09:46:02 +01:00
Simon Conseil
a8a4127fb5 Merge pull request #244 from xouillet/format_zip_name
gallery: Allow formatting in zip_gallery
2017-03-03 09:44:11 +01:00
Alexandre Chataignon
9256b83efb Added random thumbnail property for album 2017-03-03 06:38:06 +01:00
Alexandre Chataignon
fde26ec8de Added setting to skip archive generation if archive file is already present 2017-03-03 06:37:11 +01:00
Alexandre Chataignon
34bb3899c1 Permit filters.py file in template dir to define custom jinja filters 2017-03-03 06:19:48 +01:00
Alexandre Chataignon
c4c4424574 gallery: Allow formatting in zip_gallery 2017-03-03 04:57:03 +01:00
Alexandre Chataignon
fc8e9b9b51 Set @cached_property to avoid generating zip multiple times 2017-03-03 04:55:02 +01:00
Alexandre Chataignon
746c313a8d Optimisation when using keep_orig 2017-03-03 04:54:15 +01:00
Simon Conseil
433f1fd92a Cleanup, pep8 2017-02-06 00:21:44 +01:00
Simon Conseil
ed3a98ca7a Refactor image reading and warnings handling 2017-02-06 00:07:58 +01:00
Simon Conseil
ba18664706 Merge pull request #238 from jasuarez/feed-videos
feeds: include videos in feeds
2017-02-05 23:52:38 +01:00
Simon Conseil
a237c4f152 Merge branch 'pr/239' 2017-02-05 23:33:59 +01:00
Simon Conseil
59c3d211ff Fix docstring indentation 2017-02-05 23:32:45 +01:00
Simon Conseil
b57be8352f Fix title length 2017-02-05 23:28:39 +01:00
t-animal
9b509cab77 add nomedia and extended caching plugin to docs and config template 2017-02-05 23:28:39 +01:00
Simon Conseil
e246646b8d Merge pull request #236 from t-animal/extended_caching_plugin
plugin to cache the exif data of images
2017-02-05 23:17:30 +01:00
Tilman Adler
825e1dab41 plugin to cache the exif data of images 2017-02-02 18:24:00 +01:00