Add animated GIF support for profile pictures

- Detect animated GIFs and preserve animation frames during upload
- Extract dominant color from first frame for role color syncing
- Generate multi-frame descriptions using existing video analysis pipeline
- Skip face detection/cropping for GIFs to maintain original animation
- Update UI to inform users about GIF support and Nitro requirement
- Add metadata flag to distinguish animated vs static profile pictures
This commit is contained in:
2025-12-07 23:48:12 +02:00
parent 782d8e4f84
commit 9009e9fc80
2 changed files with 160 additions and 0 deletions

View File

@@ -592,6 +592,10 @@
<label for="pfp-upload">Upload Custom Image:</label>
<input type="file" id="pfp-upload" accept="image/*" style="margin-left: 0.5rem;">
<button onclick="uploadCustomPfp()">📤 Upload & Apply</button>
<div style="font-size: 0.8rem; color: #888; margin-top: 0.3rem; margin-left: 0.5rem;">
💡 Supports static images (PNG, JPG) and animated GIFs<br>
⚠️ Animated GIFs require Discord Nitro on the bot account
</div>
</div>
<div id="pfp-status" style="margin-top: 0.5rem; font-size: 0.9rem; color: #61dafb;"></div>