😫 The Pain Point
You have a funny video clip you want to share as a GIF on Slack or in a presentation. Online converters have watermarks or size limits.
🚀 Agentic Solution
A Video-to-GIF Converter with size and quality optimization.
Key Features:
- Frame Rate Control: Adjust FPS for file size vs smoothness.
- Resize: Scale down for smaller files.
- Palette Optimization: Better colors with proper dithering.
⚔️ Phase 1: Commander (Quick Fix)
For quick GIF creation.
Prompt:
“I have a video
clip.mp4. Write a Python script using FFmpeg to:
- Convert: Video to GIF.
- Settings: 15 FPS, max width 480px.
- Optimize: Use palette generation for better colors.
- Trim: Optional start/end times.
- Output: Save as
clip.gif.Print file size comparison. Handle errors gracefully.”
Result: Shareable animated GIF.
🏗️ Phase 2: Architect (Permanent Tool)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "GIF Maker".
**Requirements:**
1. **GUI:**
* Select video.
* Trim sliders (start/end).
* FPS slider (5-30).
* Width input.
* Preview first frame.
* Progress bar.
2. **Logic:**
* Two-pass: Generate palette, then convert.
* Optional gifsicle optimization.
* Show output file size.
3. **Deliverables:**
* `gif_maker.py`
* `run.bat`, `run.sh`
* `requirements.txt`
🧠 Prompt Decoding
- Palette Generation: GIFs are limited to 256 colors. Pre-generating an optimal palette improves quality.
🛠️ Instructions
- Install FFmpeg.
- Copy Prompt → Run.