Skip to main content

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.

Example

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: Install from PyPI (Recommended)

pip install jarvis-meme-generator

Option 2: Install from Source

# Clone the repository
git clone https://github.com/jbejjani2022/jarvis-meme-generator.git
cd jarvis-meme-generator

# Install with pip
pip install .

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

  1. Takes your input text
  2. Loads the base Jarvis image
  3. Intelligently wraps text to fit the white area
  4. Auto-adjusts font size if needed
  5. Renders bold text for maximum readability
  6. 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

jarvis_meme_generator-1.0.1.tar.gz (649.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jarvis_meme_generator-1.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file jarvis_meme_generator-1.0.1.tar.gz.

File metadata

  • Download URL: jarvis_meme_generator-1.0.1.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

Hashes for jarvis_meme_generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4d59b9cb2daffad0dcdc398a085d7caeb9bbfe364de16f5cccc7381b7bce1034
MD5 0f59af144d91d325f7645e917c4034ef
BLAKE2b-256 e5245427bf110afe6d98240720e121567c37df4e4ad3e23fc33dcc6c58f38007

See more details on using hashes here.

File details

Details for the file jarvis_meme_generator-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jarvis_meme_generator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f2d5e2078a05aa767e69ef629d9f53fa38c093ddfc849f92e85779d3c7e8f3
MD5 9ca623b6096f2e2d0f8592afd6cc2870
BLAKE2b-256 5681afd20790bd5e5a5d1131f833e5a67ff5b9f99a0ac4640d2d6ea395db57bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page