memegen is a command-line utility for creating image macros with text captions. It takes an existing picture and adds text at the top, bottom or both positions to produce a conventional internet meme. The program uses ImageMagick for image manipulation and the Impact typeface for the familiar white lettering with a black outline.
Users specify an input image, an output filename and the captions they want to display. The source can be a local image or a URL, allowing pictures found online to be used without manually downloading them first. Captions are automatically converted to uppercase, and their positioning and outline thickness are calculated using the source image’s width. The script also checks that the source is an image and that the output location is usable. If the destination file already exists, it asks for confirmation before replacing it. Once the image has been generated, memegen attempts to open it using the desktop’s default image viewer.
This is free and open source software.
Key Features
- Create captioned memes from existing images using a command-line interface.
- Accept local image files as input.
- Download an image from a supplied URL using curl.
- Add text captions to the top and bottom of an image.
- Generate memes using either a single caption or both captions.
- Automatically convert caption text to uppercase.
- Use the Impact typeface with white lettering and a black outline.
- Position captions at the top and bottom using ImageMagick’s gravity settings.
- Calculate caption area height and text outline thickness relative to the source image’s width.
- Save the generated meme to a user-specified output filename.
- Prompt for confirmation before overwriting an existing output file.
- Validate the source image and output destination before generating the meme.
- Automatically open the generated image using xdg-open.
Website: github.com/Vendicated/memegen
Support:
Developer: Vendicated
License: GNU General Public License v3.0

Related Software
| Meme Generation Tools | |
|---|---|
| Meme | Written in Go. MIT License |
| doge | Written in Python. MIT License |
| memegen | POSIX script. GPL v3.0 |
| meme-generator-rs | Writte in Rust. MIT License |
| memethesis-cli | Written in Python. GPL v3.0 |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.