1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-10-15 23:33:48 +10:00
Commit Graph

65 Commits

Author SHA1 Message Date
fb6bd6cb21
server: Drop unused pytz import 2018-04-18 15:56:54 +10:00
5a6349a193
Add distribution files. 2018-04-18 14:39:36 +10:00
ea0089ee8c
Re-locate static files.
Make these a sub-package of the main package for easy deployment.
2018-04-18 14:30:19 +10:00
f43b020d94
resizer: Convert to RGB colourspace when saving. 2018-04-18 14:06:51 +10:00
1b675c7ff4
metadata: Ignore lines without tabs. 2018-04-18 14:06:37 +10:00
2fd4fa665f
resizer: Implement rotation
Need to work on dimensions.
2018-04-18 13:57:44 +10:00
8c67f262bf
photo: Fix more default parameter bugs 2018-04-18 13:26:16 +10:00
c7be34ce58
photo: Fix invalid variable name 2018-04-18 13:04:54 +10:00
a002a21ee5
resizer: Avoid lots of files in one directory.
Split up the cache directory structure so that we have:
	- gallery name
	- photo name
as subdirectories in the full path, as many file systems perform poorly
when you have *lots* of files in a single directory.
2018-04-18 12:57:41 +10:00
d0d6be6659
resizer: Avoid exposing full path, remove double extension 2018-04-18 12:48:33 +10:00
4919e2be7a
server: Fix default values, parameter handling. 2018-04-18 12:42:07 +10:00
ae66e0b3eb
server: Split up photo handler.
Provide separate endpoints for the thumbnail, photo data and the photo
page.
2018-04-18 12:31:23 +10:00
3b78ea028c
photo: Add relative URI retrieval 2018-04-18 12:31:05 +10:00
2183eb7f07
photo: Don't assume mtime is 0. 2018-04-18 11:44:17 +10:00
7d9c6feace
gallery: Don't assume mtime is 0 2018-04-18 11:43:31 +10:00
0df12ba7b9
metadata: Don't assume mtime of 0.
If we get a timestamp in 1969 or earlier, all hell breaks loose!
2018-04-18 11:41:36 +10:00
743ecff492
photo: Fix metadata retrieval 2018-04-17 13:41:13 +10:00
a1f6182be1
metadata: Fix typo de-referencing node. 2018-04-17 13:40:04 +10:00
ed6020b196
server: Render photo page. 2018-04-17 12:23:44 +10:00
ec506fcafe
photo: Add description property 2018-04-17 12:23:32 +10:00
b9aea4096d
gallery: Add first/last properties. 2018-04-17 12:23:15 +10:00
c56dd6a238
server: Cast values to integers/floats where needed 2018-04-17 11:58:19 +10:00
b8e865a234
resizer: Silence error message. 2018-04-17 11:57:48 +10:00
a2aaa3d04e
resizer: Fix storage of cached result. 2018-04-17 11:54:29 +10:00
ecca823763
photo: Fix aspect ratio calculations, round result. 2018-04-17 11:54:07 +10:00
103f35501e
server: Render gallery page. 2018-04-17 11:12:54 +10:00
6827847d4c
photo: Add some infrastructure for gallery page. 2018-04-17 11:12:38 +10:00
38dc36f360
resizer: Add image metadata retrieval. 2018-04-17 11:11:46 +10:00
82815f740e
gallery: Ignore files with no . in name. 2018-04-17 10:53:58 +10:00
e8ec20cfed
server: Fix static URI paths.
Seems `StaticFileHandler` is *very* fussy regarding paths, and will
refuse to serve up files unless things are *exactly* right.
2018-04-17 10:51:49 +10:00
8d4ca42a89
server: Add rendering of front page. 2018-04-11 19:52:15 +10:00
5f9d80b639
photo: Add prev/next metadata. 2018-04-11 19:28:59 +10:00
9aaa4f758b
gallery: Add prev/next 2018-04-11 19:19:24 +10:00
74f2e64ea7
server: Implement display of images.
Still need to handle templates.
2018-04-09 19:44:41 +10:00
09f0d7c6e2
resizer: Use a thread pool.
Seems we can't pass some objects between parent and subprocess, so it's
just easier to put up with the GIL and use a thread pool.
2018-04-09 19:44:04 +10:00
d243e7e2e4
server: Initial server implementation 2018-04-09 19:24:51 +10:00
e661ea101f
gallery: Make Gallery a Mapping object. 2018-04-09 19:15:55 +10:00
2fc5a65e9f
gallery: Sort contents 2018-04-09 19:13:09 +10:00
b3d1a4d0d6
gallery: Initialise logger 2018-04-09 19:08:05 +10:00
194073ee4b
metadata: Pass through log argument 2018-04-09 19:07:48 +10:00
bd68ec956d
cache: Derive off Mapping 2018-04-09 19:07:16 +10:00
a08899ea3a
gallery: Pass logger to resizer pool. 2018-04-09 17:39:52 +10:00
7ee894b832
resizer: Add logging 2018-04-09 17:39:26 +10:00
1228b113b2
gallery: Pass through logger instances to MetaCache. 2018-04-09 17:26:58 +10:00
36f776f124
cache: Add logging 2018-04-09 17:24:28 +10:00
3520dca18d
photo: Expose services from gallery, fix error on annotation. 2018-04-09 17:21:09 +10:00
8b0bad0171
gallery: Expose filesystem cache from collection. 2018-04-09 17:20:49 +10:00
fa7ba2d852
resizer: Fix whitespace. 2018-04-09 17:09:03 +10:00
e0d08e0f77
gallery: Fix enumeration of content 2018-04-09 17:07:55 +10:00
cc78c391f4
gallery: Implement enumeration. 2018-04-09 17:04:14 +10:00