feat: generate progressive JPEGs for thumbnails (#25463)

This commit is contained in:
Min Idzelis
2026-01-23 19:35:07 -05:00
committed by GitHub
parent 4fedae4150
commit 357ec1394a
13 changed files with 186 additions and 4 deletions

View File

@@ -176,6 +176,7 @@ export class MediaRepository {
quality: options.quality,
// this is default in libvips (except the threshold is 90), but we need to set it manually in sharp
chromaSubsampling: options.quality >= 80 ? '4:4:4' : '4:2:0',
progressive: options.progressive,
});
await decoded.toFile(output);