Memegen is a very simple CLI program that can write text on a picture you provide, either on top, bottom or both. It supports font loading, font sizing, will word-wrap properly if the text is too long. Just a little project for fun mostly.
Grab the latest binary on the releases page or install it from source:
$ go get -u github.com/Depado/memegen
Note: This project uses go modules
Usage:
memegen <picture> [options] [flags]
memegen [command]
Available Commands:
help Help about any command
version Show build and version
Flags:
-b, --bottom string text to display on bottom
--font.outline int outline of the font (default 4)
-f, --font.path string font path to use (default "fonts/impact.ttf")
-s, --font.size float font size (default 70)
-h, --help help for memegen
-o, --output string output file (default "out.png")
-t, --top string text to display on top
Use "memegen [command] --help" for more information about a command.
In order for this to work, you'll need to download fonts or specify the path
of the .ttf
font you wish to use (that is installed on your system). For
example you can create the fonts/
directory and
download the impact
font in it.