๐ซ The Pain Point
Year End Party is coming. You need to send digital invites to 200 staff. โDear [Mr. John], You are invitedโฆโ. A blank template is easy, but making 200 personalized JPEGs?
๐ Agentic Solution
โMail Mergeโ for Images: Fill in the blank spots on an image programmatically.
Key Features:
- Custom Fonts: Supports
.ttfcalligraphy fonts for elegance. - Positioning: Exact pixel coordinates for the name.
โ๏ธ Phase 1: Commander (Quick Fix)
For a quick batch.
Prompt:
โI have a list of names in
guests.txtand an imageinvite.png. Use Pillow to write each name at position (400, 300) on the image. Use font size 40, color red.โ
Result: 200 custom invites.
๐๏ธ Phase 2: Architect (Permanent Tool)
For HR/Event Planners.
Engineering Prompt:
**Role:** Python Graphics Developer
**Task:** Create a "Bulk Invitation Generator".
**Requirements:**
1. **GUI:**
* Load Template Image.
* Load Excel Guest List.
* **Visual Config:** Click on the image to set the (X, Y) text position.
* Pick Font, Color, Size.
* "Generate All" button.
2. **Logic:**
* Iterate guests.
* `draw.text(xy, name, font, fill)`.
* Save as `Invite_[Name].jpg`.
3. **Deliverables:** `invite_gen.py`, `run.bat` (Windows), `run.sh` (Mac).
๐ง Prompt Decoding
- Visual Config: Coordinates (X=400, Y=300) are abstract. The โClick on imageโ requirement bridges the gap between code and design, making the tool usable for non-coders.
๐ ๏ธ Instructions
- Copy Prompt -> Paste -> Run.
- Click text position -> Load List -> Generate.