Convert WriteFreely quotes to Instagram / PixelFed posts.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Matt Baer c4df3dded3 Remove default instance hace 3 años
cmd/wfgraphic-cli Remove default instance hace 3 años
fonts Support setting font for graphic hace 3 años
.gitignore Ignore .idea dir hace 3 años
LICENSE License project under AGPL hace 3 años
README.md Remove default instance hace 3 años
go.mod Create basic image creation tool hace 3 años
go.sum Add go.sum file hace 3 años
options.go Remove default instance hace 3 años
textpic.go Support configuring image size hace 3 años

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/writeas/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")
  -i 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 -i write.as -u blog

Examples

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