feat(signage): slides keep their shape on any screen, custom shapes (21:9, 16:10…), Calibrate the picture edge by edge with presets

A slide is drawn at its playlist's shape, as large as fits the screen's picture,
the bands in its own background (or stretched, the screen's choice). Playlists and
library slides may have a shape of their own (aspect, Alembic 0045). Signage ->
Screens -> Calibrate the picture: the TV outlines its area with arrows and its size,
each edge moves pixel by pixel or a preset centres a shape; the TV follows live
(signage.calibrate) and reports its window (POST /screen/viewport). Plan 6R.13, F-110.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 13:04:24 +02:00
co-authored by Claude Opus 5.5
parent d5c19e17ce
commit 1c8d45e00c
32 changed files with 917 additions and 103 deletions
+40 -1
View File
@@ -1605,7 +1605,17 @@
"defaultHint": "When no schedule line matches: a playlist, or one slide shown alone.",
"aPlaylist": "Playlist",
"aSlide": "Slide",
"nowSlide": "Now: {{name}} (its default slide)"
"nowSlide": "Now: {{name}} (its default slide)",
"fit": "Slides of another shape",
"fitHint": "A slide built for another shape than this screen's picture.",
"fits": {
"keep": "Keep their shape (bands)",
"stretch": "Stretch to fill"
},
"pictureWhole": "The picture fills the TV's whole window.",
"pictureCut": "The picture is calibrated (edges moved in).",
"pictureWindow": "The picture fills the TV's whole window: {{w}} × {{h}} px, {{shape}}.",
"pictureOf": "The picture: {{w}} × {{h}} px ({{shape}}) of the TV's {{ww}} × {{wh}} window."
},
"schedules": {
"new": "New schedule",
@@ -1789,6 +1799,35 @@
"empty": "Fill in a number (1 or more).",
"backTo": "Back to {{n}}",
"warning": "More than {{n}} widgets can make the TVs stutter (slides turning late, videos jerking). Check your screens after you add them."
},
"shape": {
"custom": "Own shape {{shape}}",
"own": "A shape of its own (21:9, 16:10…)",
"hint": "For screens that aren't 16:9. The slides are built and shown at this shape.",
"width": "Width",
"height": "Height",
"invalid": "Between 1:4 and 4:1, whole numbers up to 99.",
"use": "Use {{shape}}"
},
"calibrate": {
"open": "Calibrate the picture",
"title": "Calibrate the picture: {{name}}",
"intro": "The TV now shows its picture's edges with four arrows pointing out. Move each edge until its arrow just touches the edge of the screen, or pick a shape. Changes show on the TV at once.",
"window": "The TV's window: {{w}} × {{h}} px ({{shape}}).",
"waiting": "Waiting for the TV to tell its size… Is it on and showing signage?",
"presets": "Shapes",
"full": "Whole screen",
"step": "Each click moves",
"edges": {
"top": "Top edge in",
"right": "Right edge in",
"bottom": "Bottom edge in",
"left": "Left edge in"
},
"picture": "The picture: {{w}} × {{h}} px ({{shape}})",
"outside": "Outside the picture the TV stays black.",
"reset": "Whole screen again",
"done": "Done"
}
},
"overview": {
+24
View File
@@ -572,7 +572,31 @@
"180": "Upside down",
"270": "90° left"
}
},
"fit": {
"label": "Slides of another shape",
"hint": "Keep their shape (bands in the slide's own background), or stretch them over the whole picture.",
"choices": {
"keep": "Keep their shape",
"stretch": "Stretch to fill"
}
},
"area_left": {
"label": "Picture area: left edge (px)",
"hint": "Set with Signage → Screens → Calibrate the picture."
},
"area_top": {
"label": "Picture area: top edge (px)"
},
"area_right": {
"label": "Picture area: right edge (px)"
},
"area_bottom": {
"label": "Picture area: bottom edge (px)"
}
},
"config_groups": {
"picture": "The picture"
}
},
"staff_planning": {
+4
View File
@@ -487,6 +487,10 @@
"spicy": "Spicy",
"vegetarian": "Vegetarian",
"vegan": "Vegan"
},
"calibrate": {
"title": "Calibrating the picture of {{name}}",
"hint": "In the manager (Signage → Screens), move each edge until the arrows touch the edges of the screen."
}
},
"menuTablet": {