Use full-bleed photos with a single-line bottom watermark

This commit is contained in:
Pigway
2026-10-06 10:03:59 +08:00
parent 60f42fb58c
commit 559ee767e2
6 changed files with 156 additions and 34 deletions
+13
View File
@@ -202,3 +202,16 @@ Endpoints:
The legacy cloud star route forwards to the linked local asset when available;
cloud star controls are removed from the UI. App/Synology favorites are separate.
### Camera-style watermark layout
Captioned source photos fill the photo area with an aspect-preserving cover
crop (or smart crop when requested). Legacy contain jobs use cover for this
layout; standalone image uploads still preserve their explicit fit modes.
The default white bottom band is 6% of the shorter canvas dimension (72px on
1200×1600 or 1600×1200). Title, date and location share one horizontal line.
Long text shrinks and is shortened without wrapping; source metadata is intact.
`PhotoLayoutProvider` separates layout decisions from image decoding/rendering
and device upload. The built-in `WatermarkLayout` is deterministic; an AI layout
provider is not implemented or called. Existing local/cloud images are unchanged
until a new preview or scheduled photo is generated.