bug: APNG endpoint returns wrong media type (image/png instead of image/apng) #196

Closed
opened 2026-04-08 00:16:21 +00:00 by cal · 1 comment
Owner

Problem

The animated card endpoint at app/routers_v2/players.py line ~863 returns media_type="image/png" for APNG files. While APNG is technically valid PNG, Discord and browser clients may not animate the content correctly when served as image/png.

Fix

Change media_type="image/png" to media_type="image/apng" on the animated card endpoint response.

Impact

Low effort, high correctness. T3/T4 animated cards may not display animations in some clients without the correct MIME type.

## Problem The animated card endpoint at `app/routers_v2/players.py` line ~863 returns `media_type="image/png"` for APNG files. While APNG is technically valid PNG, Discord and browser clients may not animate the content correctly when served as `image/png`. ## Fix Change `media_type="image/png"` to `media_type="image/apng"` on the animated card endpoint response. ## Impact Low effort, high correctness. T3/T4 animated cards may not display animations in some clients without the correct MIME type.
Claude added the
ai-working
label 2026-04-08 01:01:16 +00:00
Claude added
ai-pr-opened
and removed
ai-working
labels 2026-04-08 01:02:03 +00:00
Collaborator

Fixed in PR #204. Changed media_type="image/png" to media_type="image/apng" on the animated card endpoint response at players.py:863.

Fixed in PR #204. Changed `media_type="image/png"` to `media_type="image/apng"` on the animated card endpoint response at `players.py:863`.
cal closed this issue 2026-04-08 02:26:05 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-database#196
No description provided.