Skip to content

Conversation

seekayel
Copy link

Purpose

When using github-readme-stats generated assets in situations that need specific aspect ratios (eg social preview for websites) it is helpful to lock the generated image to a specific size.

This PR adds new query parameters of height and width which lock the produced svg size to all stats card types.

Example: To match social card 1200x630 aspect ratio:
https://github-readme-stats.vercel.app/api?username=anuraghazra&width=600&height=315

Copy link

vercel bot commented Aug 22, 2025

@seekayel is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added documentation Improvements or additions to documentation. stats-card Feature, Enhancement, Fixes related to stats the stats card. repo-card Issues related to the pin/repo card. lang-card Issues related to the language card. wakatime-card Issues related to the wakatime card. dependencies Pull requests that update a dependency file gist-card labels Aug 22, 2025
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Aug 31, 2025
@seekayel
Copy link
Author

seekayel commented Sep 2, 2025

I'm willing to keep the PR updated with base and make any requested changes if it is valuable to the project. However not sure I want to do that if its not of interest.

Let me know if this has a shot of getting merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation. gist-card lang-card Issues related to the language card. repo-card Issues related to the pin/repo card. ⭐ top pull request Top pull request. stats-card Feature, Enhancement, Fixes related to stats the stats card. wakatime-card Issues related to the wakatime card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant