51 Commits

Author SHA1 Message Date
1bca4c3642 Rewrite to use s3 instead of local files and rocksdb. 2020-06-22 20:48:15 -07:00
e7b29509e5 Use cache for thumbnail too. 2020-06-20 22:40:08 -07:00
58064a6309 Use cacher for downloading fullsize images. 2020-06-20 22:25:29 -07:00
3402d7bcf4 Clean lint. 2020-06-20 20:08:37 -07:00
009dd1ff19 Remove deprecated file. 2020-06-20 20:05:35 -07:00
639a1c7b3a Set default handler to high rank to prevent collision. 2020-06-20 17:08:26 -07:00
76594dc0c1 Rocket based webserver now has parity with warp version. 2020-06-20 14:36:00 -07:00
80ef93f20f Start of rewrite from warp->rocket. 2020-06-20 12:50:22 -07:00
a19874fe47 Attempt to create a cacher but I can't make it work with warp. 2020-06-19 20:37:51 -07:00
7e2cf1b956 Move image helpers to xinu.tv/imageutils 2020-04-01 18:21:22 -07:00
f14dbff066 Prettier /embedz, now with sizes. 2020-03-14 15:07:58 -07:00
bd3aac5bc0 Add /embedz handler to see what files are in binary. 2020-03-14 14:26:12 -07:00
a96fe1da9d Implement ServeAndSync. 2020-03-10 18:38:45 -07:00
01c7582ae3 Implement timeout to automatically advance slide. 2020-02-23 09:00:22 -08:00
7ec3a11037 Use non-filling resize on server side. Client does filling. 2020-02-23 08:46:20 -08:00
d0ce89b27c Comment out verbose logging. 2020-02-22 21:36:12 -08:00
1b292b30c9 Don't log on cache hit. 2020-02-22 21:32:17 -08:00
233d0c4883 Use Lanczos3 when generating thumbnails. 2020-02-22 17:49:35 -08:00
1c82313c98 Benchmark more jpeg decoders. Do downsizing decode with jpeg_decoder. 2020-02-22 17:19:57 -08:00
7f64a4d2f6 Implement less abstracted nearest filtering.
Add some tests that try to compare image's Nearest with my
implementation.  According the PSNR they're very different, but to a
human the look the same.
2020-02-22 09:38:47 -08:00
77d69221d1 Parameterized tests. Include pixels/s. 2020-02-21 13:50:26 -08:00
df28512450 Refactor for testing. 2020-02-20 20:19:27 -08:00
b552b922fa Finish implementation of option parameter resize. 2020-02-19 21:30:12 -08:00
f2f5279266 Handle unset size parameters, print # gc'd entries on startup. 2020-02-19 21:19:40 -08:00
d74a8117d7 Refactor thumbnail generation. 2020-02-17 17:50:43 -08:00
43974b7406 Properly resize images, bump library generation to match. 2020-02-17 14:57:48 -08:00
b801954599 More efficient garbage collection of cache.
Iterates backwards from first entry of this generation, and forward from
last entry.
2020-02-17 14:54:39 -08:00
914e30365e Store thumbnails in rocksdb. 2020-02-17 14:50:09 -08:00
12b5193b26 Add static serving from assets built into binary. 2020-02-15 23:09:01 -08:00
4bb2354fdf Implement album index and image resize. 2020-02-15 08:12:13 -08:00
e191b2a3ff First version of rust web server serving album.json 2020-02-15 07:54:37 -08:00
1c99396705 Move common code to lib module. More stub webservice. 2020-02-10 21:13:46 -08:00
5c0f409f03 Minor logging changes. 2020-02-10 21:03:04 -08:00
c4deab996b Move file creation code to library module. 2020-02-10 20:59:52 -08:00
48da92e278 Move flag requirements for credentials to subcommands that need it. 2020-02-09 22:05:48 -08:00
88234c156c Delegate stub webserver to mod web.
Add prometheus monitoring.
2020-02-09 21:56:41 -08:00
2dd5bb1d43 Stub websever, don't store to API given filename (sometimes they have /) 2020-02-09 21:46:05 -08:00
249db6500e sync: download fullsize images. 2020-02-09 21:26:03 -08:00
df3d29ce7c Write out images in per-album json. 2020-02-09 12:34:53 -08:00
3ad5c4f706 Merge branch 'master' of https://git.z.xinu.tv/wathiede/photosync 2020-02-09 10:49:16 -08:00
50c40c56db Made main buildable again. 2020-02-09 09:03:47 -08:00
b08e9616bf Write out per album.json 2020-02-09 08:59:59 -08:00
7a6394c7f8 Add search iterator 2020-02-08 15:19:25 -08:00
b0a10364b0 Base sync support.
Refactored list_albums to be useful in sync and list-albums.
2020-02-06 18:27:37 -08:00
3952f9e1fb Exhaustive match. Accidentally submitted code that doesn't compile.
complie
2020-02-05 16:53:38 -08:00
7fb8a08118 Different approach for matching title filters 2020-02-05 16:50:15 -08:00
e3f96f34c9 Use larger batches for faster search. 2020-02-05 10:05:55 -08:00
9691e7b456 Add search-media-items verb to list all photos in an album. 2020-02-05 09:54:18 -08:00
076a947b08 structopt-ify, move list ablum to subcommand add filtering by regex. 2020-02-04 22:56:15 -08:00
013a45f553 Print album ids and titles. 2020-02-03 22:37:41 -08:00