fix: improve thumbnail quality and show gradient border around preview
Build and Deploy Verso / deploy (push) Successful in 15m20s

Increase pdftocairo output from 190px/q50 to 380px/q82 — 2× resolution
for crisp rendering on retina displays, higher quality to eliminate
visible compression artefacts.

Inset the thumbnail image 6px from the tile edges (inset: 6px) with a
4px border-radius so the card's colour gradient is visible as a frame
around the document preview.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-12 10:10:24 +00:00
parent 7da02d9e3a
commit 0bbc07e0b9
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -287,9 +287,9 @@ async function thumbnailFromBuild(req, res) {
'pdftocairo',
[
'-jpeg',
'-jpegopt', 'quality=50',
'-jpegopt', 'quality=82',
'-singlefile',
'-scale-to-x', '190',
'-scale-to-x', '380',
'-scale-to-y', '-1',
'-f', '1',
'-l', '1',
@@ -542,11 +542,10 @@ $lum-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
// Falls back to the gradient + initial when the image 404s or is loading.
.lumiere-card-thumb-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
inset: 6px;
object-fit: cover;
object-position: top center;
border-radius: 4px;
z-index: 1;
}