diff --git a/app/routers_v2/players.py b/app/routers_v2/players.py index 34fefe1..0175bab 100644 --- a/app/routers_v2/players.py +++ b/app/routers_v2/players.py @@ -770,7 +770,7 @@ async def get_animated_card( headers = {"Cache-Control": "public, max-age=86400"} if os.path.isfile(cache_path) and tier is None: - return FileResponse(path=cache_path, media_type="image/png", headers=headers) + return FileResponse(path=cache_path, media_type="image/apng", headers=headers) all_pos = ( CardPosition.select() @@ -860,7 +860,7 @@ async def get_animated_card( finally: await page.close() - return FileResponse(path=cache_path, media_type="image/png", headers=headers) + return FileResponse(path=cache_path, media_type="image/apng", headers=headers) @router.get("/{player_id}/{card_type}card")