Convert WriteFreely quotes to Instagram / PixelFed posts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matt Baer 1fe0b16d4f Move project to writefreely org 2 years ago
cmd/wfgraphic-cli Move project to writefreely org 2 years ago
fonts Support setting font for graphic 2 years ago
.gitignore Ignore .idea dir 2 years ago
LICENSE License project under AGPL 2 years ago Move project to writefreely org 2 years ago
go.mod Move project to writefreely org 2 years ago
go.sum Add go.sum file 2 years ago
options.go Remove default instance 2 years ago
textpic.go Support configuring image size 2 years ago


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


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

go get

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. "")
  -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 -u blog


Sample using default fonts. Sample using 'sans' font and a custom domain.