Skip to main content

Project Logo

The Lupaxa Miscellaneous Toolbox
Part of The Lupaxa Project


lupaxa-favicon-generator

Generate a modern favicon set from one source image (PNG, JPEG, WebP, or SVG): PNG sizes, favicon.ico, Apple touch icon, PWA icons (including maskable), site.webmanifest, optional HTML link snippet, and favicon.svg when the source is SVG.

Built for documentation and product sites used by The Lupaxa Project.

Features

  • One source image → full favicon / PWA icon set
  • Formats: PNG, JPEG, WebP, and SVG (SVG needs system Cairo)
  • Outputs: 16/32 PNG, multi-size ICO, Apple touch 180×180, 192/512 and maskable 512 icons, webmanifest, optional HTML snippet
  • CLI flags for fit mode, padding, theme/background colours, and name metadata
  • Fully typed, linted, formatted, and tested
  • MkDocs documentation included

Installation

From PyPI

pip install lupaxa-favicon-generator

From source (development mode)

pip install -e ".[dev]"

The console command is favicon-generator.

SVG input also requires the system Cairo library (brew install cairo on macOS or apt install libcairo2 on Debian/Ubuntu).

CLI quick start

favicon-generator --help
favicon-generator --version
favicon-generator logo.png
favicon-generator logo.svg \
  --output-dir site/assets/favicons \
  --prefix /assets/favicons/ \
  --name "My App" \
  --short-name "App" \
  --theme-colour "#0A0A0A" \
  --background-colour "#0A0A0A" \
  --background "#0A0A0A" \
  --padding 0.05

Default output directory: ./favicons.

You can also run the CLI as a module:

python -m lupaxa.favicon_generator --help
python -m lupaxa.favicon_generator logo.png

Requirements

  • Python 3.10+
  • Runtime dependencies: Pillow, cairosvg
  • System Cairo for SVG input

Documentation

Online documentation:

Documentation

Source repository:

GitHub

Serve docs locally

From a clone of the repository:

make mkdocs-serve

Then open the local URL printed by MkDocs in your browser.

Development

Clone the repository and install with Make:

make init                # first-time makefile-skills checkout
make python-install-dev  # editable install with [dev]
make python-check        # lint, type-check, and test
The Lupaxa Project Footer

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lupaxa_favicon_generator-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lupaxa_favicon_generator-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_favicon_generator-0.1.0.tar.gz.

File metadata

  • Download URL: lupaxa_favicon_generator-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lupaxa_favicon_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1ce7110aa4bc202583ee24a156cf02d35299054b359e31f7d2cbfb4db0394de
MD5 5451e955fa90e8b07c448d85385bfe67
BLAKE2b-256 db4540b435ca9b4c70aa046df8aa80e2a417db734ae6ea95e778798686d59e45

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_favicon_generator-0.1.0.tar.gz:

Publisher: generate-release.yml on lupaxa-miscellaneous-toolbox/favicon-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lupaxa_favicon_generator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_favicon_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a017405d06afca152dd9322789f8f692f0d5c0d32cbafc388d809f0da0ecd850
MD5 dc448679fd9ef7436377e61e1cbf88f3
BLAKE2b-256 a8daa407ff77ecc140d6286829c29b65831bf49c86e281ef64274a98b6c4632d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_favicon_generator-0.1.0-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-miscellaneous-toolbox/favicon-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page