Request Immich preview-size images instead of tiny default thumbnails
Deploy to Dev / Deploy & Smoke Test (push) Successful in 23s

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.
This commit is contained in:
2026-07-20 04:23:09 +00:00
parent c367758205
commit 53677c9f6c
+3 -2
View File
@@ -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;