Convert WriteFreely quotes to Instagram / PixelFed posts.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Matt Baer 1fe0b16d4f Move project to writefreely org 3年前
cmd/wfgraphic-cli Move project to writefreely org 3年前
fonts Support setting font for graphic 3年前
.gitignore Ignore .idea dir 3年前
LICENSE License project under AGPL 3年前
README.md Move project to writefreely org 3年前
go.mod Move project to writefreely org 3年前
go.sum Add go.sum file 3年前
options.go Remove default instance 3年前
textpic.go Support configuring image size 3年前

README.md

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/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

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