geometric-banner
Make geometric banner images, e.g. for a LinkedIn profile banner.
According to LinkedIn, the optimal size for a profile banner is 1128 by 191 pixels. According to me, the best shape is the hexagon.
Sample results
Usage
Run it without installing anything, using uv:
uvx geometric-banner
Or install it as a tool so geometric-banner is always on your PATH:
uv tool install geometric-banner
geometric-banner
(pip install geometric-banner works too.) Either way, the command writes
geometric_banner.svg and geometric_banner.png to the current directory.
Everything is optional; the defaults produce a LinkedIn-sized hexagon banner colored
by a Gaussian process in viridis. Pass --seed to make a result reproducible — with the
same installed versions of numpy and scikit-learn, that is; the Gaussian process sampler
goes through floating-point linear algebra, so upgrading those can shift the result slightly.
geometric-banner --shape triangle --colormap magma --seed 42
| Option | Values | Default |
|---|---|---|
--shape |
hexagon, triangle |
hexagon |
--pattern |
gaussian_process, random |
gaussian_process |
--colormap |
viridis, magma, inferno, plasma |
viridis |
--seed |
any integer | none (a fresh random result each run) |
--scale |
shape size in pixels | 10 |
--padding-factor |
center-to-center spacing as a multiple of scale; below 1 the shapes overlap |
1.1 |
--width, --height |
canvas size in pixels | 1128, 191 |
geometric-banner --help lists the same options.
Development
just sync # create the virtualenv and install everything
just check # lint, format check, type check, and tests with coverage
just help # list every recipe
Metadata
Release files for geometric-banner 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| geometric_banner-0.1.0.tar.gz | 23.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geometric_banner-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.3 kB
Security for geometric-banner 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for geometric_banner-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.