fix(journey): serve a medium preview to large photo tiles

Entry cards and the entry photo grid loaded the provider thumbnail (about
250 px for Immich) and drew it blurry. Photos now have a medium "preview"
rendition: Immich's preview, Synology's xl and a local photo's 800 px
thumbnail. GET /api/photos/:id/preview serves it behind the same access
check, and both share link photo routes now hand a preview on instead of
reading every size but thumbnail as the original. The entry grid, the
entry covers, the phone feed cards and the share page's large tiles ask
for it; small tiles keep the thumbnail.

The Synology picker named no size and got the 240 px rendition; its
tiles now ask for the medium one.
This commit is contained in:
Maurice
2026-11-30 14:28:29 +01:00
parent 3a300a3996
commit 555027f10f
28 changed files with 278 additions and 54 deletions
@@ -170,7 +170,7 @@ function FeedPhoto({ entry }: { entry: JourneyEntry }) {
</span>
) : (
<img
src={`/api/photos/${photoId}/thumbnail`}
src={`/api/photos/${photoId}/preview`}
alt=""
loading="lazy"
className="absolute inset-0 h-full w-full object-cover"