Commit graph

16 commits

Author SHA1 Message Date
0e2f8a55ce
View to list all images in collection (#3)
* Cache generation instead of views

This way, query params are kept cached.

* Add view to list all images
2024-09-15 21:41:06 +02:00
b859fece88
Introduce image request query parameter for filtering and selection (#2)
* Add selection ability using image query parameter

the selections is the index of the list of images,
where 0 is the first image. `os.listdir` is asumed
to always sort the list the same.

- if no selection is provided, take random image
  from image collection (like main)
- if 1 selection is provided, return the nth image
  from collection
- if 2 or more selections are provided, take random
  item from the selection and return the image at
  that index.

* Handle bad selection input

- Nondigit selections returns HTTP 401
- exclude indexes out of range (0--collection length)
2024-09-15 20:46:02 +02:00
90638fd72a
Remove outdated line in README.md 2024-09-09 10:50:51 +02:00
ee699df9e6
Improve image rendering (#1)
* Re-randomize image if dimensions do not satisfy

* Try a maximum of 10 times to generate an image

* Decrease image generation cache to 1s

* Increase image quality
2024-09-09 09:12:44 +02:00
e124ce6501
Fix typos in README 2024-09-03 12:05:32 +02:00
d0c09b628b
Fix wrong port number in Caddyfile 2024-09-03 12:01:33 +02:00
72f3505e7b
Fix inconsistent whitespace in Caddyfile 2024-09-03 09:33:03 +02:00
486990c5ed Restore waitress defaults 2024-09-03 09:12:04 +02:00
e79c29fdcd Improve example links 2024-09-03 01:17:06 +02:00
c289c2591a
Markdown proof archived links in README.md 2024-09-03 01:14:55 +02:00
f468ec5b6a
Replace dead links in README.md 2024-09-03 01:06:44 +02:00
7b66ee9bf8
Update README.md 2024-09-03 01:04:07 +02:00
6c06364feb Add README 2024-09-03 00:57:20 +02:00
82ff171668 Provide sample Caddyfile 2024-09-03 00:53:28 +02:00
0d50db20ae Introduce container build files 2024-09-03 00:52:54 +02:00
5152af4126 Create placeany flask project 2024-09-03 00:52:43 +02:00