Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michelml/wob
Generating white on black text pictures, and more.
https://github.com/michelml/wob
cli cli-tool command-line command-line-tool commandline commandline-tool fonts image image-creation images javascript jimp script text-to-image
Last synced: 3 months ago
JSON representation
Generating white on black text pictures, and more.
- Host: GitHub
- URL: https://github.com/michelml/wob
- Owner: MichelML
- License: mit
- Created: 2019-05-01T16:15:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T00:48:34.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T13:26:13.602Z (4 months ago)
- Topics: cli, cli-tool, command-line, command-line-tool, commandline, commandline-tool, fonts, image, image-creation, images, javascript, jimp, script, text-to-image
- Language: JavaScript
- Homepage:
- Size: 3.73 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Generating white on black pictures, and more.
### Install
```
git clone https://github.com/MichelML/wob.git \
cd wob \
sudo npm i -g .
```### Usage
```
wob -m "Hello World" -r 400
```
This will output:
It adapts to multiple lines text:
```
wob -m "This is a little bit awesome." -r 400
```
will output:
### Help
Run the following to see all options:
```
wob --help
```
This should output something similar to:
```
Options:
--resize, -r Resize picture to nxn pixels [number]
--bgColor, -b CSS/Hex value of the background [string] [default: "black"]
--color, -c CSS/Hex value of the font [string] [default: "white"]
--message, -m Message [string] [default: ""]
--fontsize, -s Font size in pixels [number] [default: 200]
--fontfamily, -f Font-family
[string] [choices: "anton", "comfortaa", "karla", "roboto", "montserrat"]
[default: "montserrat"]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
```