Image gallery that arranges images in rows filling the page and prevents image downloads for normal users. Optimized for seaf_fuse.
Go to file
Klemens Schölhorn 48a3a206a3 Reduce resource usage of metadata update task
This task previously read all images file's EXIF data every 60s, which
leads to a very large CPU usage for seaf_fuse.

The obvious fix of checking for modifications times and only read the
change files does not work with seaf_fuse, because stat is not cheaper
than actually opening and reading the file.

So instead, we now only read the file list and the modification time of
the image directory itself and update the image metadata only if there
are changes. We also update the metadata at least once every hour to
detect modified files on normal filesystems.

Interestingly, seaf_fuse will update the mtime of a directory if any file
in that directory is changed, so the logic implemented in this commit
will actually detect image changes with seaf_fuse instantly.
2024-01-21 17:42:22 +01:00
src Reduce resource usage of metadata update task 2024-01-21 17:42:22 +01:00
templates Add support for config file in image directory 2023-04-07 00:37:54 +02:00
.gitignore Import initial working prototype 2023-03-10 19:00:12 +01:00
Cargo.lock Reduce resource usage of metadata update task 2024-01-21 17:42:22 +01:00
Cargo.toml Add support for config file in image directory 2023-04-07 00:37:54 +02:00
config.yaml.example Fix spelling mistake in example config 2023-04-07 00:43:16 +02:00