anuraghazra/github-readme-stats

enhancement: custom icons/images in place of rank display

Opened this issue · 2 comments

Is your feature request related to a problem? Please describe.

Add custom images to the rank display.
This could increase the asthetics of the card.

Describe the solution you'd like

A new feature: to add icons/images to the Stats Widget in place of the rank display.
There is an option to add a github logo there, and there should be more pre built images to add.

A new api parameter should be introduced: &rank_icon=

Additional context

A unique image could be assigned to every theme, and on applying the theme, it's respective logo could be displayed (optional)

It sounds like you're proposing a feature for an application or a platform that displays user stats, possibly a widget or a card system. You want to enhance the visual appeal by allowing custom icons or images for the rank display in addition to, or replacing, the text-based rank display.

Problem Description:

The current system only allows for limited customization, particularly with a GitHub logo, and you’d like more pre-built images or the ability to upload custom images/icons.

Proposed Solution:

  • New API Parameter (&rank_icon=): You suggest introducing an additional API parameter that lets users specify a custom icon or image for the rank display.
  • Pre-built Images: You want to expand the library of available pre-built icons (like the GitHub logo), allowing more aesthetic options.
  • Optional Customization: Users would be able to either:
    • Choose from pre-built icons (e.g., GitHub logo, stars, etc.).
    • Upload or link custom icons through the &rank_icon= API parameter.

Benefits:

  • Improved Visual Appeal: Adding custom images to the rank display can enhance the aesthetic look of the stat cards.
  • More Flexibility: Users would have more control over the presentation of their stats.
  • Personalization: This allows users to better personalize their widgets.

Would you also like support for multiple ranks (e.g., tier-based icons) or other customization options?

Would you also like support for multiple ranks (e.g., tier-based icons) or other customization options?

#3874