Generate Jarvis meme images with custom text
Project description
Jarvis Meme Generator
Generate custom Jarvis memes. This tool takes the image below and overlays your text in the white region.
Features
- 🎨 Smart Text Rendering: Automatically wraps and resizes text to fit perfectly
- 💪 Bold Text: Uses bold fonts and rendering techniques for maximum impact
- 🔄 Auto-Sizing: Dynamically adjusts font size to ensure all text fits
- 📱 Cross-Platform: Works on Windows, macOS, and Linux
- ⚡ Simple CLI: Just one command to generate your meme
Installation
Option 1: Quick Install (Recommended)
# Clone the repository
git clone https://github.com/yourusername/jarvis-meme-generator.git
cd jarvis-meme-generator
# Run the installer
./install.sh
Option 2: Manual Install
# Clone the repository
git clone https://github.com/yourusername/jarvis-meme-generator.git
cd jarvis-meme-generator
# Install with pip
pip3 install --user .
Option 3: Install from PyPI (if published)
pip3 install --user jarvis-meme-generator
Usage
After installation, you can use the jarvis command from anywhere:
jarvis "Your text here"
Examples
# Simple text
jarvis "Hello World"
# Longer text (automatically wrapped)
jarvis "This is a longer message that will be automatically wrapped to multiple lines"
Generated images are saved to ~/jarvis/ by default.
Custom Output Directory
jarvis "Your text" -o /path/to/output/directory
Requirements
- Python 3.7 or higher
- Pillow (PIL) library (automatically installed)
How It Works
- Takes your input text
- Loads the base Jarvis image
- Intelligently wraps text to fit the white area
- Auto-adjusts font size if needed
- Renders bold text for maximum readability
- Saves the result with a filename based on your text
Output
Images are saved as jarvis_YOUR_TEXT_HERE.png in the specified directory (default: ~/jarvis/).
Troubleshooting
Command not found: jarvis
If you get "command not found" after installation, you may need to add ~/.local/bin to your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Or for zsh:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Font Issues
The tool automatically tries to find the best available bold font on your system. If you're having font rendering issues, make sure you have system fonts installed.
License
MIT License - feel free to use and modify!
Contributing
Pull requests welcome! Feel free to add features, fix bugs, or improve the documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jarvis_meme_generator-1.0.0.tar.gz.
File metadata
- Download URL: jarvis_meme_generator-1.0.0.tar.gz
- Upload date:
- Size: 649.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4763d15d37d46464f932e5f6335d140f7da8b814f80ecd47740b70b774553d7c
|
|
| MD5 |
e5b406f3e13bbcf1a1d5a418a98447b9
|
|
| BLAKE2b-256 |
967697a3422f2b057059c7491153275690bce3004ae63bdf96a62b3e51ac4f22
|
File details
Details for the file jarvis_meme_generator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jarvis_meme_generator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c1d59f5f917ba266552ec8917bad7392a5abfa07edc240e3688e74723a6ad0b
|
|
| MD5 |
0c45ecd2cbe05574e2a1154b1ae47833
|
|
| BLAKE2b-256 |
4d91fa7f202429f300c1f81b493138fc0a6885b777d032c82f8bec521e9db793
|