Language:
🇺🇸
🇨🇳
«zlogo» combined with logo.svg and svglib, can generate custom logo images in PNG format
Implementation examples are as follows:
# generate logo `hahaha`
$ zlogo -l hahaha
# specifies that the font size is 100
$ zlogo -fs 100
# specifies that the surrounding blank fill size is 100
$ zlogo -p 100
# specify the output path
$ zlogo -o ./zlogo.svg
# specify the configuration file path
$ zlogo -c ~/zlogo/configs/readme.yaml
I want to design a personal logo. After find a lot of information, found that
So i wrote this script for everyone's convenience
$ pip install zlogo
$ zlogo --help
usage: zlogo [-h] [-l LOGO] [-f FONT] [-fs FontSize] [-p PADDING]
[--color COLOR] [-c CONFIG_FILE] [-o OUTPUT] [-v]
custom logo - ZLOGO
optional arguments:
-h, --help show this help message and exit
-l LOGO, --logo LOGO specify the logo text
-f FONT, --font FONT path to a font file(.ttf)
-fs FontSize, --fontsize FontSize
specify the font size
-p PADDING, --padding PADDING
specify the border size
--color COLOR sepcify the text' color
-c CONFIG_FILE, --config_file CONFIG_FILE
path to config file
-o OUTPUT, --output OUTPUT
path to output file(.svg)
-v, --version output version infomation
It can be configured through command line parameters or through configuration files
- For configuration files, please refer to
avatar.yaml
andreadme.yaml
in theconfigs
directory - For font files
- If you specify with the parameter
-f
, you must specify the exact path - If you use the configuration file to specify, you can put the font file in the
~/.fonts
directory and specify the font file name in the configuration file
- If you specify with the parameter
Note: the setting of command line parameters overwrites the configuration file
- zhujian - Initial work - zjykzj
Anyone's participation is welcome! Open an issue or submit PRs.
Small note:
- Git submission specifications should be complied with Conventional Commits
- If versioned, please conform to the Semantic Versioning 2.0.0 specification
- If editing the README, please conform to the standard-readme specification.
Apache License 2.0 © 2020 zjykzj