Draw a picked photo only with bg=photo, keep bg=satellite to aerial imagery
The operator judged the Commons-photo poster unfit as a default: its crop lands beside the circuit and shows the track only as an inset. bg=satellite is now the national aerial photo, else EOxCloudless (or the dark map where "use": "map" is set); the new bg=photo draws the layout's picked photo and without one falls back to what bg=satellite draws. A picks entry may hold the photo fields, "use": "map", or both; an unknown use and incomplete photo fields are refused at load. The smallest width is 400 px so the full credit line stays readable, and the ASCII credit header spells out ß, æ, ø, œ and đ so names stay readable. Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
+3
-3
@@ -129,10 +129,10 @@ app.mount(
|
||||
# seconds, so it runs in the threadpool instead of holding up every other request on the event loop.
|
||||
|
||||
POSTER_OPTIONS_DOC = """Options are query parameters, the same on every poster route (docs/posters.md); an unknown option
|
||||
or value is answered 422, naming it: `style` (classic, minimal), `bg` (satellite, its alias aerial, osm, dark,
|
||||
light, none), `photo` (natural, bw), `show` (a comma list of wordmark, round, name, subtitle, date, circuit,
|
||||
or value is answered 422, naming it: `style` (classic, minimal), `bg` (satellite, its alias aerial, photo, osm,
|
||||
dark, light, none), `photo` (natural, bw), `show` (a comma list of wordmark, round, name, subtitle, date, circuit,
|
||||
locality, session), `locator` and `checker` (on, off), `track` (off, or #rrggbb with an optional width:
|
||||
#ffffff,6), `dim` (0 to 1), `accent` (#rrggbb), `width` (200 up to the frame's), `format` (png, jpg, webp), and
|
||||
#ffffff,6), `dim` (0 to 1), `accent` (#rrggbb), `width` (400 up to the frame's), `format` (png, jpg, webp), and
|
||||
`v`, the render version, which the Kometa file adds so clients keep the picture for good."""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user