Changeset 492fc20 in Klonkt for src/services/ThumbnailService.js


Ignore:
Timestamp:
06/28/2026 05:40:58 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
5bc67b4
Parents:
041a0df
Message:

fix(images): 256px size for list/cirkel covers (match the crisp grid ratio)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/ThumbnailService.js

    r041a0df r492fc20  
    2323const execFileP = promisify(execFile);
    2424
    25 // Allowed widths (whitelist → no arbitrary-size abuse). 128 = avatars; 480 ≈ 2× a grid tile.
    26 export const THUMB_SIZES = new Set([128, 320, 480, 640]);
     25// Allowed widths (whitelist → no arbitrary-size abuse). 128 = avatars; 256 ≈ 2× a list
     26// cover; 480 ≈ 2× a grid tile. Keep these ~2× the display size so line-art stays crisp.
     27export const THUMB_SIZES = new Set([128, 256, 320, 480, 640]);
    2728
    2829let _seq = 0;
Note: See TracChangeset for help on using the changeset viewer.