Sign inSign up

programmerrdai/memer

By programmerrdai

•Updated about 1 year ago

A Rust CLI tool for generating memes using OpenAI's DALL-E 3 API

Image
Machine learning & AI
0

10K+

programmerrdai/memer repository overview

⁠memer.rs

A fast, efficient Rust CLI tool for generating internet-style memes using OpenAI's DALL-E 3 API.

⁠Features

  • Fast meme generation using DALL-E 3
  • Automatic UUID-based file organization
  • Optimized for classic meme format (top/bottom text, bold styling)
  • Async/await for efficient API calls
  • Configurable output directories
  • Cross-platform support via Docker

⁠Quick Start

⁠Docker Usage
# Pull the image
docker pull your-dockerhub-username/memer-rs

# Run with environment variable
docker run -e OPENAI_API_KEY=your_api_key_here \
  -v $(pwd)/memes:/app/memes \
  your-dockerhub-username/memer-rs \
  --query "when you finally understand Rust ownership" \
  --folder /app/memes

⁠Environment Setup

You need an OpenAI API key from https://platform.openai.com/⁠

⁠Usage Examples

  # Basic meme generation
  docker run -e OPENAI_API_KEY=your_key memer-rs -q "debugging at 3am"
  # With custom output folder
  docker run -e OPENAI_API_KEY=your_key -v $(pwd)/my_memes:/output memer-rs \
    -q "when your code works on the first try" -f /output

⁠Technical Details

  • Language: Rust 2024 edition
  • Image Model: DALL-E 3
  • Output Format: 1024x1024 PNG files
  • Base Image: Alpine Linux (minimal footprint)
  • Architecture: Multi-stage build for optimized size

⁠Requirements

  • OpenAI API key (subscription required)
  • Docker or container runtime

⁠Source Code

GitHub: https://github.com/Programmer-RD-AI/memer.rs⁠

Tag summary

Content type

Image

Digest

sha256:3c457407c…

Size

6.4 MB

Last updated

about 1 year ago

docker pull programmerrdai/memer