[presto] Update tests/references to medium cover size

This commit is contained in:
Claudio Ortolina
2026-05-16 21:28:09 +01:00
parent fb84bcb525
commit d61dd6c7b8
5 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ _These rules apply to any scrollable view (day list, detail page, or future addi
## Image Handling
- Row thumbnails use `covers.small` from the API. Detail covers use `covers.medium`.
- The API provides display-ready JPEG sizes: `covers.small` is 80px and `covers.medium` is 460px. Do not resize covers on the device.
- The API provides the row thumbnail size directly: `covers.small` is 80px. Detail covers use `covers.medium` in a `DETAIL_COVER_SIZE = px(200)` 400px layout area; do not expand it to fill the 480px display unless explicitly requested.
- Cache downloaded image bytes on the record dict. Use separate cache keys for different sizes (e.g., `_thumb_data` for rows, `_detail_thumb_data` for detail view). Never fetch images during drag — show placeholders instead and repaint real covers on release.
- JPEG is the practical default. PNG has worse memory characteristics; raw/RGB565 needs a confirmed stable blit API on the target firmware.