A simple logo generator that creates SVG and PNG logos from text.
Project description
«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
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.yamlandreadme.yamlin theconfigs/directory. - Command-line arguments take precedence over settings in the configuration file.
🔤 Font Files
There are two ways to specify a custom font:
-
Using the
-fparameter# You must provide the full path to a .ttf (TrueType) font file $ zlogo -f /path/to/your/font.ttf
-
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zlogo-1.0.2.tar.gz.
File metadata
- Download URL: zlogo-1.0.2.tar.gz
- Upload date:
- Size: 17.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef9dd9c8a98160a5dadf9e775a2ea315fb0ab11a807f9950ed055bd2305527d
|
|
| MD5 |
e3f25748be901fbc68bf2cef5d1e780b
|
|
| BLAKE2b-256 |
03621f79fc5cf535a877bfeefae178cf56a80d86ebfb9e33b8d325c250a1d96d
|
File details
Details for the file zlogo-1.0.2-py3-none-any.whl.
File metadata
- Download URL: zlogo-1.0.2-py3-none-any.whl
- Upload date:
- Size: 17.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2cdd391afadff2c118e4b7b47ecafa52ddf3ecc65228bec3d049dba26a88e6a
|
|
| MD5 |
e26356aa756a2add1c2186d10bbb29e6
|
|
| BLAKE2b-256 |
d772f296162ea2303bc75186d349329f062ddf7192515a1b0b1b29f68dc2e6d7
|