Skip to main content

«zlogo» allows you to input text to generate logo images

Generate logo from text and obtain SVG and PNG format files simultaneously.

Table of Contents

Background

I want to design a personal logo. After find a lot of information, found that

  1. logo.svg can customize logo patterns and generate svg files
  2. svglib can convert svg to png

So i wrote this script for everyone's convenience

Update in 2025

Kozea/CairoSVG is better suited for use with zlogo compared to svglib.

Install

$ pip install zlogo

Usage

# Generate a logo with the text "hahaha"
$ zlogo -l hahaha

# Specify the font size as 100
$ zlogo -fs 100

# Set padding around the logo to 100 pixels
$ zlogo -p 100

# Define the output file path
$ zlogo -o ./zlogo.svg

# Use a configuration file to customize the logo
$ zlogo -c ~/zlogo/configs/readme.yaml

📁 Configuration File

  • For available configuration options, please refer to the example files: avatar.yaml and readme.yaml in the configs/ directory.
  • Command-line arguments take precedence over settings in the configuration file.

🔤 Font Files

There are two ways to specify a custom font:

  1. Using the -f parameter

    # You must provide the full path to a .ttf (TrueType) font file
    $ zlogo -f /path/to/your/font.ttf
    
  2. Using a configuration file

    Place your font file in the ~/.fonts/ directory, and then specify only the filename (not the full path) in the configuration file.

Maintainers

  • zhujian - Initial work - zjykzj

Thanks

Contributing

Anyone's participation is welcome! Open an issue or submit PRs.

License

Apache License 2.0 © 2020 zjykzj

Metadata

Release files for zlogo 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zlogo 1.0.2
File Size Uploaded Provenance
zlogo-1.0.2.tar.gz 17.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zlogo 1.0.2
File Interpreter ABI Platform
zlogo-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 MB

Release files / zlogo-1.0.2.tar.gz

Download URL zlogo-1.0.2.tar.gz
Size 17.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7ef9dd9c8a98160a5dadf9e775a2ea315fb0ab11a807f9950ed055bd2305527d
BLAKE2b-256 checksum
How to use checksums
03621f79fc5cf535a877bfeefae178cf56a80d86ebfb9e33b8d325c250a1d96d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / zlogo-1.0.2-py3-none-any.whl

Download URL zlogo-1.0.2-py3-none-any.whl
Size 17.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f2cdd391afadff2c118e4b7b47ecafa52ddf3ecc65228bec3d049dba26a88e6a
BLAKE2b-256 checksum
How to use checksums
d772f296162ea2303bc75186d349329f062ddf7192515a1b0b1b29f68dc2e6d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for zlogo 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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