A sophisticated Flask-based microservice that generates dynamic Discord visuals including user profile cards, server leaderboards, and comprehensive statistics dashboards with advanced image processing capabilities.
Creates detailed profile images with user statistics, top servers, friends, tracks, playlists, and custom badges with circular avatar cropping and dynamic text positioning. Supports multiple data sources including music ranks, listening time, server statistics, and user achievements.
Generates paginated leaderboards with server branding, user avatars, and statistics. Supports both message and voice activity tracking with custom date ranges. Features responsive layout with guild icons, banners, and customizable modes for users or channels.
Creates detailed server overview images with daily statistics, top contributors, and channel analytics with customizable lookback periods and timezone support. Displays message trends, voice activity, top members across text and voice channels with comprehensive data visualization.
• Memory Optimization: BytesIO streams for efficient image handling
• Error Handling: Fallback avatars and graceful degradation
• Text Truncation: Smart text fitting with ellipsis for long names
• Format Conversion: Automatic image format standardization
• PIL/Pillow Integration: Advanced image manipulation with custom fonts, gradients, and effects
• Dynamic Layouts: Responsive positioning based on content length and user data
• Avatar Processing: Circular cropping, resizing, and transparency handling
• Background Effects: Gaussian blur, brightness adjustment, and overlay masking

Mask of the Profile which will be in background