Skip to content

Instantly share code, notes, and snippets.

@Denperidge
Created January 2, 2023 16:29
Show Gist options
  • Save Denperidge/d2ff0eb542cbe79b72f2af9421b59795 to your computer and use it in GitHub Desktop.
Save Denperidge/d2ff0eb542cbe79b72f2af9421b59795 to your computer and use it in GitHub Desktop.
Leverages the gh-card project to create PNG's. Because Google Docs doesn't support SVG's.
#!/bin/bash
read -p 'User: ' user
repo='Placeholder'
while [ "$repo" ]
do
read -p 'Repo: ' repo
wget "https://gh-card.dev/repos/$user/$repo.svg"
inkscape "$repo.svg" --export-type=png -h 540 -o "$repo.png"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment