1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-13 16:43:16 +10:00
Commit Graph

74 Commits

Author SHA1 Message Date
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
1e1053cc68
templates: Pass through rotation/quality 2018-04-18 14:01:55 +10:00
8782e75765
JavaScript: Fix resize/rotate features.
Avoid the nasty XHR and eval when retrieving images, use an off-page
image instead.  Fix the requests to match the new back-end.
2018-04-18 13:58:07 +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
66b88bed17
templates: Use "friendly" image URIs 2018-04-18 12:49:05 +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
3cf45ad5d6
templates: Use {% raw %} when dumping JSON 2018-04-17 14:16:50 +10:00
2cbe4f6cf9
templates: Tweak index URIs 2018-04-17 13:51:15 +10:00
90d012d17d
templates: Tweak display text/escaping 2018-04-17 13:46:23 +10:00
44cb0910a9
templates: Do not print None if no annotation. 2018-04-17 13:43:32 +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
27ff44645f
templates: Tweak photo page template 2018-04-17 12:23:00 +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
d4f55bb4af
templates: Call server for thumbnail
Rather than hard-coding the URI to the thumbnail (generated beforehand)
as with the old CGI.
2018-04-17 11:53:20 +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
aec529e676
templates: Fix gallery title. 2018-04-17 11:11:33 +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
b452019f41
templates: Tweak URIs, use raw text for descriptions. 2018-04-17 10:27:48 +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