|
|
6 months ago | |
|---|---|---|
| .. | ||
| env | 6 months ago | |
| gemini | 6 months ago | |
| template | 6 months ago | |
| README.md | 6 months ago | |
| bun.lock | 6 months ago | |
| index.ts | 6 months ago | |
| package.json | 6 months ago | |
| tsconfig.json | 6 months ago | |
This collection of tools allows you to edit and analyze images using Google's Gemini AI directly from OpenCode.
.env file:
bash
GEMINI_API_KEY=your_api_key_here
/gemini - Simple Image EditorEdit an image using file path or data URL:
/gemini "path/to/image.png" "Add a red border around the image" "output.png"
/gemini "data:image/png;base64,AAA..." "Convert to black and white"
/gemini_multiple_edit - Advanced Image EditorSame functionality as /gemini but from the multiple tools file:
/gemini_multiple_edit "image.jpg" "Make it look like a watercolor painting" "watercolor.jpg"
/gemini_multiple_analyze - Image AnalysisAnalyze an image without editing it:
/gemini_multiple_analyze "screenshot.png" "What programming language is shown in this code?"
/gemini_multiple_analyze "photo.jpg" "Describe the objects and colors in this image"
/gemini_edit - Auto-Detection Plugin/gemini_edit "Add the text 'Hello World' in cursive at top"
/gemini_edit "Make this image look like a painting"
gemini.ts - Simple tool that accepts image argumentsgemini-multiple.ts - Multiple tools (edit + analyze) in one file../plugin/gemini-edit.ts - Plugin with auto-detection of pasted images# Edit an image
/gemini "logo.png" "Add a subtle drop shadow" "logo-shadow.png"
# Analyze code in a screenshot
/gemini_multiple_analyze "code-screenshot.png" "What bugs can you spot in this code?"
# Auto-edit pasted image
# (paste image first, then run:)
/gemini_edit "Remove the background and make it transparent"