Keep tall card portraits cropped to the card size (#77)

Add ChampionSource::card_portrait (Data Dragon loading art) and
Tracker::refresh_card_portraits, which downloads the missing ones, crops them
to the card's 0.68 aspect at the mockup's 24 % focus, shrinks them to
308 x 453 px and saves them as JPEG in portraits/cards via a .part file.
ChampionRow gains card_portrait.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nessarandClaude Opus 5.5 committed 2026-11-20 21:08:57 +01:00
1 parent 34e8fb8a50
commit 50c0427958
8 files changed
+365 -2

No files matched your search

+1
View File
@@ -310,6 +310,7 @@ pub(crate) mod tests {
name: name.into(),
},
portrait: None,
card_portrait: None,
matches: 0,
best_placement: None,
top1: 0,