From 53677c9f6c5f187768c9f34996a87d076499ec5b Mon Sep 17 00:00:00 2001 From: Jerod Hodgkin Date: Mon, 20 Jul 2026 04:23:09 +0000 Subject: [PATCH] Request Immich preview-size images instead of tiny default thumbnails The default /thumbnail endpoint serves a 250x374 WebP, which is visibly blurry on portfolio cards meant to show off real work. size=preview returns a ~1440px-wide JPEG at a reasonable file size, confirmed directly against the live Immich instance. Fixes #25. --- src/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 44528c8..0a22b4b 100644 --- a/src/index.html +++ b/src/index.html @@ -1723,9 +1723,10 @@ return []; } - // Build thumbnail URLs for all assets + // Immich's default thumbnail size is a 250px-wide WebP — too small for + // full-bleed portfolio cards. size=preview serves a ~1440px JPEG instead. const thumbnailUrls = assets.map(asset => - `${baseUrl}/api/assets/${asset.id}/thumbnail?key=${shareKey}` + `${baseUrl}/api/assets/${asset.id}/thumbnail?key=${shareKey}&size=preview` ); return thumbnailUrls;