Skip to content

marko-stanojevic/PSMemeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

PSMemeGenerator

A PowerShell-powered meme generator for engineers who prefer pipelines over Photoshop. Generate, customize, and automate memes straight from the terminal. Perfect for CI jokes, release sarcasm, and infrastructure humor. Because if the build breaks, at least the meme deploys successfully.

Build Status PowerShell Gallery Downloads License

About

PSMemeGenerator is a PowerShell module that generates memes straight from the terminal. It fetches templates from the Imgflip API, overlays top/bottom text using System.Drawing, and saves the result as a JPEG β€” no browser or image editor required.

Why PSMemeGenerator?

PSMemeGenerator is designed for engineers who live in the terminal. It simplifies meme creation by integrating directly into PowerShell pipelines, so you can automate, script, and compose memes the same way you do everything else. Perfect for CI jokes, release notes, incident post-mortems, and general infrastructure sarcasm.

Note: Requires Windows OS β€” text rendering depends on System.Drawing (GDI+).

Example Output

New-Meme -Name 'Distracted Boyfriend' -TopText 'Pull requests' -BottomText 'Pushing directly to main' -OutputPath '.\pushing_directly_to_main.jpg'

Distracted Boyfriend - Pull requests vs Pushing directly to main

πŸš€ Getting Started

Prerequisites

Required:

  • PowerShell 7.0+
  • Windows OS (for System.Drawing / GDI+ support)

Installation

Install the module from the PowerShell Gallery:

Install-Module -Name PSMemeGenerator -Scope CurrentUser

Find a template

Get-MemeTemplate -Name 'Distracted Boyfriend' 

Generate a meme for every matching template

Get-MemeTemplate | ForEach-Object {
    New-Meme -Id $_.Id -TopText 'Pull requests' -BottomText 'Pushing directly to main' -OutputPath ".\meme_$($_.Id).jpg"
}

Quick one-liner with a known template name

New-Meme -Name 'Distracted Boyfriend' -TopText 'Fix the bug' -BottomText 'Close the ticket as "by design"' -OutputPath '.\pushing_directly_to_main.jpg'

πŸ“˜ Documentation

Comprehensive documentation is available in the docs/ directory:

🀝 Contributing

Contributions are welcome! Whether it’s bug fixes, improvements, or ideas for new features, your input helps make this template better for everyone. Please see CONTRIBUTING.md for details on:

  • Pull request workflow
  • Code style and conventions
  • Testing and quality requirements

⭐ Support This Project

If this template saves you time or helps your projects succeed, consider supporting it:

  • ⭐ Star the repository to show your support
  • πŸ” Share it with other PowerShell developers
  • πŸ’¬ Provide feedback via issues or discussions
  • ❀️ Sponsor ongoing development via GitHub Sponsors

Built with ❀️ by marko-stanojevic

About

A PowerShell-powered meme generator for engineers who prefer pipelines over Photoshop. Generate, customize, and automate memes straight from the terminal. Perfect for CI jokes, release sarcasm, and infrastructure humor. Because if the build breaks, at least the meme deploys successfully.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors