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": "Όταν δεν ταιριάζει καμία γραμμή προγράμματος: μια λίστα ή μία διαφάνεια μόνη της.",
"aPlaylist": "Λίστα",
"aSlide": "Διαφάνεια",
"nowSlide": "Τώρα: {{name}} (η διαφάνεια προεπιλογής της)"
"nowSlide": "Τώρα: {{name}} (η διαφάνεια προεπιλογής της)",
"fit": "Διαφάνειες άλλου σχήματος",
"fitHint": "Διαφάνεια φτιαγμένη για άλλο σχήμα από την εικόνα αυτής της οθόνης.",
"fits": {
"keep": "Κρατούν το σχήμα τους (λωρίδες)",
"stretch": "Τέντωμα σε όλη την εικόνα"
},
"pictureWhole": "Η εικόνα γεμίζει όλο το παράθυρο της τηλεόρασης.",
"pictureCut": "Η εικόνα είναι βαθμονομημένη (άκρες μετακινημένες προς τα μέσα).",
"pictureWindow": "Η εικόνα γεμίζει όλο το παράθυρο της τηλεόρασης: {{w}} × {{h}} px, {{shape}}.",
"pictureOf": "Η εικόνα: {{w}} × {{h}} px ({{shape}}) από το παράθυρο {{ww}} × {{wh}} της τηλεόρασης."
},
"schedules": {
"new": "Νέο πρόγραμμα",
@@ -1789,6 +1799,35 @@
"empty": "Συμπληρώστε έναν αριθμό (1 ή περισσότερα).",
"backTo": "Πίσω στα {{n}}",
"warning": "Πάνω από {{n}} widgets μπορεί να κάνουν τις τηλεοράσεις να κολλάνε (διαφάνειες που αλλάζουν αργά, βίντεο που κόβονται). Ελέγξτε τις οθόνες σας αφού τα προσθέσετε."
},
"shape": {
"custom": "Δικό του σχήμα {{shape}}",
"own": "Δικό του σχήμα (21:9, 16:10…)",
"hint": "Για οθόνες που δεν είναι 16:9. Οι διαφάνειες φτιάχνονται και προβάλλονται σε αυτό το σχήμα.",
"width": "Πλάτος",
"height": "Ύψος",
"invalid": "Από 1:4 έως 4:1, ακέραιοι έως 99.",
"use": "Χρήση {{shape}}"
},
"calibrate": {
"open": "Βαθμονόμηση εικόνας",
"title": "Βαθμονόμηση εικόνας: {{name}}",
"intro": "Η τηλεόραση δείχνει τώρα τις άκρες της εικόνας με τέσσερα βέλη προς τα έξω. Μετακινήστε κάθε άκρη μέχρι το βέλος της να ακουμπά την άκρη της οθόνης ή διαλέξτε σχήμα. Οι αλλαγές φαίνονται αμέσως στην τηλεόραση.",
"window": "Το παράθυρο της τηλεόρασης: {{w}} × {{h}} px ({{shape}}).",
"waiting": "Αναμονή για το μέγεθος της τηλεόρασης… Είναι ανοιχτή και δείχνει ψηφιακή σήμανση;",
"presets": "Σχήματα",
"full": "Όλη η οθόνη",
"step": "Κάθε κλικ μετακινεί",
"edges": {
"top": "Πάνω άκρη μέσα",
"right": "Δεξιά άκρη μέσα",
"bottom": "Κάτω άκρη μέσα",
"left": "Αριστερή άκρη μέσα"
},
"picture": "Η εικόνα: {{w}} × {{h}} px ({{shape}})",
"outside": "Έξω από την εικόνα η τηλεόραση μένει μαύρη.",
"reset": "Ξανά όλη η οθόνη",
"done": "Τέλος"
}
},
"overview": {
+24
View File
@@ -572,7 +572,31 @@
"180": "Ανάποδα",
"270": "90° αριστερά"
}
},
"fit": {
"label": "Διαφάνειες άλλου σχήματος",
"hint": "Να κρατούν το σχήμα τους (λωρίδες με το φόντο της διαφάνειας) ή να τεντώνονται σε όλη την εικόνα.",
"choices": {
"keep": "Κρατούν το σχήμα τους",
"stretch": "Τέντωμα σε όλη την εικόνα"
}
},
"area_left": {
"label": "Περιοχή εικόνας: αριστερή άκρη (px)",
"hint": "Ρυθμίζεται από Ψηφιακή σήμανση → Οθόνες → Βαθμονόμηση εικόνας."
},
"area_top": {
"label": "Περιοχή εικόνας: πάνω άκρη (px)"
},
"area_right": {
"label": "Περιοχή εικόνας: δεξιά άκρη (px)"
},
"area_bottom": {
"label": "Περιοχή εικόνας: κάτω άκρη (px)"
}
},
"config_groups": {
"picture": "Η εικόνα"
}
},
"staff_planning": {
+4
View File
@@ -487,6 +487,10 @@
"spicy": "Καυτερό",
"vegetarian": "Χορτοφαγικό",
"vegan": "Vegan"
},
"calibrate": {
"title": "Βαθμονόμηση εικόνας: {{name}}",
"hint": "Στον διαχειριστή (Ψηφιακή σήμανση → Οθόνες) μετακινήστε κάθε άκρη μέχρι τα βέλη να ακουμπούν τις άκρες της οθόνης."
}
},
"menuTablet": {
+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": {