feat(photos): a photo knows its colours and its calm areas

Photo signals move to version 3: a deterministic palette, a busy grid and
the point of most detail, stored as measured values, never as image bytes.
This commit is contained in:
Maurice
2026-10-22 21:25:46 +00:00
parent 4570ace78c
commit 2c98ae8e4a
10 changed files with 398 additions and 8 deletions
@@ -16,6 +16,10 @@ export class TrekPhotoSignals {
orig_width?: number | null;
orig_height?: number | null;
computed_at!: string & Opt;
palette?: string | null;
busy?: string | null;
sal_x?: number | null;
sal_y?: number | null;
}
export const TrekPhotoSignalsSchema = defineEntity({
@@ -34,5 +38,9 @@ export const TrekPhotoSignalsSchema = defineEntity({
orig_width: p.integer().nullable(),
orig_height: p.integer().nullable(),
computed_at: p.type(DbTimestampType).defaultRaw(`CURRENT_TIMESTAMP`),
palette: p.text().nullable(),
busy: p.text().nullable(),
sal_x: p.double().nullable(),
sal_y: p.double().nullable(),
},
});