Closes #186 - Add app/services/apng_generator.py: scrubs CSS animations via Playwright (negative animation-delay + running override), assembles frames with apng lib - Add GET /{player_id}/{card_type}card/{d}/{variant}/animated endpoint: returns cached .apng for T3/T4 cards, 404 for T0-T2 - T3: 12 frames × 200ms (gold shimmer, 2.5s cycle) - T4: 24 frames × 250ms (prismatic sweep + diamond glow, 6s cycle) - Cache path: storage/cards/cardset-{id}/{type}/{player_id}-{d}-v{variant}.apng - Add apng==3.1.1 to requirements.txt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| apng_generator.py | ||
| formula_engine.py | ||
| refractor_boost.py | ||
| refractor_evaluator.py | ||
| refractor_init.py | ||
| season_stats.py | ||