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:
+2
-2
@@ -17,14 +17,14 @@ FRAMES = {"poster": (1000, 1500), "thumb": (1920, 1080)}
|
||||
FRAME_OF = {"race": "poster", "season": "poster", "session": "thumb"}
|
||||
|
||||
SHOW_ITEMS = ("wordmark", "round", "name", "subtitle", "date", "circuit", "locality", "session")
|
||||
BACKGROUNDS = ("satellite", "osm", "dark", "light", "none")
|
||||
BACKGROUNDS = ("satellite", "photo", "osm", "dark", "light", "none") # photo is never a style's default
|
||||
BG_ALIASES = {"aerial": "satellite"} # kept for addresses already in use
|
||||
PHOTO_TREATMENTS = ("bw", "natural")
|
||||
FORMATS = {"png": "image/png", "jpg": "image/jpeg", "webp": "image/webp"}
|
||||
STYLES = ("classic", "minimal")
|
||||
ON_OFF = {"on": True, "off": False}
|
||||
TRACK_WIDTHS = (1, 30)
|
||||
MIN_WIDTH = 200
|
||||
MIN_WIDTH = 400 # the full credit line stays readable
|
||||
|
||||
# The accent the classic and minimal styles give the wordmark: F1 red. One place, mirrored by the picker page.
|
||||
DEFAULT_ACCENT = "#dc1220"
|
||||
|
||||
Reference in New Issue
Block a user