https://github.com/writefreely/text-pic
Convert WriteFreely quotes to Instagram / PixelFed posts.
https://github.com/writefreely/text-pic
writefreely
Last synced: 2 months ago
JSON representation
Convert WriteFreely quotes to Instagram / PixelFed posts.
- Host: GitHub
- URL: https://github.com/writefreely/text-pic
- Owner: writefreely
- License: agpl-3.0
- Created: 2021-01-19T17:54:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T13:33:58.000Z (about 3 years ago)
- Last Synced: 2024-10-29T20:22:26.397Z (7 months ago)
- Topics: writefreely
- Language: Go
- Homepage:
- Size: 639 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# text-pic
This tool generates a social media-friendly graphic from some text. It's especially made to be paired with [WriteFreely](https://writefreely.org), a minimalist blogging platform.
## Usage
To run this, you'll need Go installed. With that, you can compile the project:
```
go get github.com/writefreely/text-pic/cmd/wfgraphic-cli
```Then you can run `wfgraphic-cli` with the options below.
```
Usage of wfgraphic-cli:
-font string
Post font (options: "serif", "sans", "mono") (default "serif")
-h string
WriteFreely instance hostname (e.g. "pencil.writefree.ly")
-o string
Image output filename (default "out.png")
-size string
Image size, either a single number for a square (e.g. "900") or a combined width and height (e.g. "1080x1920") (default "1024")
-u string
WriteFreely author username (for multi-user instances)
```The actual content of the graphic is read from `stdin`, which you can either supply when prompted to, or pipe in, for example:
```
cat quote.txt | ./wfgraphic-cli -h write.as -u blog
```## Examples