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

110 Commits

Author SHA1 Message Date
a43005fac2
photo: Use calc_dimensions function from resizer. 2018-04-30 21:48:02 +10:00
8970021396
resizer: Ensure aspect ratio is maintained.
Implement a function that computes the aspect ratio and scales the width
or height automatically to fit the bounding box given.

Re-implement scaling algorithm using this function.
2018-04-30 21:46:55 +10:00
7f17501c57
generator template: Fix broken link on HREF 2018-04-19 15:18:58 +10:00
8f8a753667
photo, resizer: Move EXIF logic to resizer.
Also use transpose for re-orienting image, do not use rotate as it
messes up aspect ratios!
2018-04-19 11:04:53 +10:00
93906b8a46
photo: Flip dimensions if EXIF data says so. 2018-04-19 10:44:19 +10:00
fe78dcedf0
photo: Orient photo according to EXIF data. 2018-04-19 10:39:38 +10:00
79ab2d6d48
gallery: Pass through orientation to resizer 2018-04-19 10:38:45 +10:00
fd955f1f7c
resizer: Support re-orienting photo from EXIF data. 2018-04-19 10:37:50 +10:00
2405c76c0f
photo template: Use gallery first/last for prev/next if on first/last. 2018-04-19 10:29:14 +10:00
b057836b18
photo: Fix typo 2018-04-19 09:59:06 +10:00
a6d6a58acd
photo: Add support for EXIF 2018-04-19 09:48:11 +10:00
2cc9b4ce4a
gallery: Support symbolic links.
Links may point to any photo in any other gallery.  Links outside of the
galleries are ignored.
2018-04-19 09:09:15 +10:00
8857696288
resizer: Do not convert colourspace on GIF images. 2018-04-18 22:38:59 +10:00
f2c917db55
server: Make metadata img src absolute. 2018-04-18 22:24:53 +10:00
9f4f40f1d0
generator template: Pass through size, retry failures. 2018-04-18 21:51:49 +10:00
6a9ce03c38
server: Add metadata, gallery generation 2018-04-18 21:24:02 +10:00
14f2797b85
generator template: Re-implement 2018-04-18 21:23:43 +10:00
96bf8b7828
static lib: Add fetch wrapper around XMLHttpRequest 2018-04-18 21:23:08 +10:00
50cb7eb27b
static files: Add Bluebird Promise implementation. 2018-04-18 21:22:25 +10:00
b087f69699
server: Add image metadata endpoint. Tweak size handling. 2018-04-18 20:18:05 +10:00
7fd9c1a6a5
resizer: Avoid using mutex if already cached.
Waiting for file I/O reading from cache is not nearly as expensive as
waiting for an image to be resized.
2018-04-18 20:13:26 +10:00
19b432cdb9
gallery: Add metadata property. 2018-04-18 19:53:02 +10:00
e138b677a2
photo: Add metadata, fit-to-size method. 2018-04-18 19:50:59 +10:00
d912ed45c1
photo template: Use photo.html for navigation buttons. 2018-04-18 18:06:17 +10:00
84958801fe
photo template: Use thumb.jpg shortcut. 2018-04-18 18:03:41 +10:00
43eb262fc6
server: Support serving up raw images.
If given a `/raw` path; serve up the raw file as-is without resizing.
2018-04-18 18:01:38 +10:00
2c04203a30
gallery template: Use pseudo-page for photo links. 2018-04-18 17:56:53 +10:00
43661fb8ba
server: Support photo.html pseudo-page
Certain phone browsers (ahhem, ZTE!) ignore the `Content-Type` header
and try to parse the URI to figure out what kind of page they're getting
sent, and will choke if given a HTML file when the URI ends in `.jpg`.
2018-04-18 17:54:58 +10:00
8372935fe1
resizer: Use Tornado-friendly pool
Standard pool will block when too many requests are pushed into the
stack, which means *everything* blocks even if a request is not
dependent on the pool.
2018-04-18 17:35:34 +10:00
e335062319
server: Pass through process count from command line 2018-04-18 17:02:09 +10:00
03e74c2b0b
setup.py: Declare cachefs dependency 2018-04-18 15:58:41 +10:00
fb6bd6cb21
server: Drop unused pytz import 2018-04-18 15:56:54 +10:00
6abab7a54b
README.md: Initial documentation. 2018-04-18 15:07:42 +10:00
d074b9bc82
setup.py: Include package data in install. 2018-04-18 14:57:55 +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
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