https://github.com/perbu/memegen
cli meme generator
https://github.com/perbu/memegen
Last synced: 13 days ago
JSON representation
cli meme generator
- Host: GitHub
- URL: https://github.com/perbu/memegen
- Owner: perbu
- Created: 2025-03-28T18:01:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T09:40:51.000Z (over 1 year ago)
- Last Synced: 2025-05-07T19:15:07.979Z (about 1 year ago)
- Language: Go
- Size: 721 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# memegen
A simple Go command-line utility to generate a meme by adding outlined white text to an embedded template image (
`template.png`).
You'd typically use this together with something like pngcopy.
## Usage
```bash
$ memegen -text 'Generate all the memes!!!' | png2clip
```
### png2clip
This is on a mac. Probably a lot easier on Linux.
```bash
#!/bin/bash
# Create a temp file with .png extension
tmpfile=$(mktemp /tmp/clipboard_image.XXXXXX.png)
# Save stdin content to this temp file
cat > "$tmpfile"
# Use AppleScript to copy the image to clipboard
osascript -e "set the clipboard to (read (POSIX file \"$tmpfile\") as «class PNGf»)"
# Clean up temp file
rm "$tmpfile"
```
## Font Used
This tool embeds the **Bebas Neue** font (`font.ttf`).
- Copyright: Ryoichi Tsunekawa
- Source:
- License: SIL Open Font License (OFL)
## Requirements
- Go 1.16+
## Install
```bash
go install github.com/perbu/memegen@latest
```