Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

GitLab OG Image Generator

Open Graph images for your Gitlab repositories.

Community-Project

A CLI tool to generate Open Graph images for GitLab repositories.

✨ Features¢

πŸ“‹ RequirementsΒΆ

πŸ“¦ InstallationΒΆ

Using pipΒΆ

pip install gitlab-og-image-generator

Using uvΒΆ

uv add gitlab-og-image-generator

πŸš€ UsageΒΆ

If you have installed the package, you can use it with python as follows:

python -m gogg.cli --repo my-project --group my-group

You can also use uvx to directly run the tool as a command without installing it:

uvx gogg --repo my-project --group my-group

For private repositories, use a personal access token:

uvx gogg --repo my-project --group my-group/subgroup --pat glpat-xxxx

You can also customize the output:

uvx gogg --repo my-project --group my-group \
  --headline "My Organization" \
  --description "A custom description for the OG image" \
  --format png \
  --output my-image.png \
  --no-contributors \
  --no-issues

OptionsΒΆ

The following options are available:

OptionDescription
--repoRepository name (required)
--groupRepository group including subgroups (required)
--headlineHeadline text (default: group path from API)
--descriptionDescription text (default: repo description from API)
--group-iconCustom group icon URL or local file path
--patPersonal access token for private repositories
--formatImage format: png, jpg, webp (default: jpg)
--outputOutput file path
--no-contributorsHide contributors count
--no-issuesHide issues count
--no-starsHide stars count
--no-forksHide forks count

πŸ› οΈ DevelopmentΒΆ

Check out our Contribution Guide for details on setting up your development environment, running tests, and submitting pull requests.

The project uses uv for dependency management, ruff for linting, and tox for multi-environment testing.

πŸ“œ ChangelogΒΆ

See the CHANGELOG.md for a history of changes.

πŸ‘₯ ContributorsΒΆ

See our list of contributors.

πŸ“„ LicenseΒΆ

This project is licensed under the Apache License 2.0. See the LICENSE file for details.