Convert WriteFreely quotes to Instagram / PixelFed posts.
Go to file
2021-01-19 13:06:55 -05:00
cmd/wfgraphic-cli Support setting font for graphic 2021-01-19 12:36:16 -05:00
fonts Support setting font for graphic 2021-01-19 12:36:16 -05:00
.gitignore Ignore .idea dir 2021-01-17 11:46:21 -05:00
go.mod Create basic image creation tool 2021-01-17 11:08:38 -05:00
go.sum Add go.sum file 2021-01-17 11:45:37 -05:00
LICENSE License project under AGPL 2021-01-19 11:06:54 -05:00
options.go Support setting font for graphic 2021-01-19 12:36:16 -05:00
README.md Add README 2021-01-19 13:06:55 -05:00
textpic.go Support setting font for graphic 2021-01-19 12:36:16 -05:00

text-pic

This tool generates a social media-friendly graphic from some text. It's especially made to be paired with WriteFreely, a minimalist blogging platform.

Usage

To run this, you'll need Go installed. With that, you can compile the project:

go get github.com/writeas/text-pic/cmd/wfgraphic-cli

Then you can run wfgraphic-cli with the options below. The actual content of the graphic is read from stdin, which you can either supply when prompted to, or pipe in (e.g. cat quote.txt | ./wfgraphic-cli).

Usage of wfgraphic-cli:
  -font string
        Post font (options: "serif", "sans", "mono") (default "serif")
  -i string
        WriteFreely instance hostname (e.g. pencil.writefree.ly) (default "write.as")
  -o string
        Image output filename (default "out.png")
  -u string
        WriteFreely author username (for multi-user instances)

Examples

Sample using default fonts.

Sample using "sans" font and a custom domain.