Streamline your Gemini workflow for AI image and video generation. A Chrome extension with a side panel interface for prompt management and image selection.
- Pre-built prompt template for product photography
- Background scene selector with common options (Studio, Sea View, Kitchen, etc.)
- Additional details field for customization
- One-click paste to Gemini chat
- Video prompt template for vertical 9:16 video creation
- Style/Atmosphere field for customization
- My Stuff Image Picker - Select images from your Gemini gallery
- Batch image capture - Select multiple images and add them all to your prompt
- Click the extension icon to open the Side Panel
- Stay on the Image Gen tab
- Customize your prompt using the fields
- Click "Paste to Ask Gemini"
- Add your product image manually and submit
- Open the Side Panel
- Switch to Video Gen tab
- Click "Open My Stuff Picker" - a popup window opens
- Click "✓ Select" on images you want to include
- Click "Send X Images" button
- Watch as images are captured and stored in the Side Panel
- Add any prompt customizations
- Click "Paste to Ask Gemini" - text and images are pasted together!
- Download or clone this repository
- Open Chrome and go to
chrome://extensions/ - Enable Developer mode (top right toggle)
- Click "Load unpacked"
- Select the extension folder
- Pin the extension icon for easy access
generate-prompt-extension/
├── manifest.json # Extension configuration
├── background.js # Service worker (Side Panel, capture logic)
├── content.js # Gemini page integration
├── popup.html # Side Panel UI
├── popup.js # Side Panel logic
├── styles.css # Styling
└── README.md # This file
activeTab- Access current tabscripting- Inject content scriptssidePanel- Side Panel APItabs- Tab managementclipboardWrite- Clipboard accessstorage- Store selected images<all_urls>- Screen capture
- Chrome Side Panel API - Persistent side panel interface
- Screen Capture -
captureVisibleTabfor image capture - DataTransfer API - Paste images without clipboard focus issues
- Chrome Storage - Persist selected images between captures
Due to CORS/CSP restrictions on Gemini, images cannot be fetched directly. Instead:
- Images are displayed in a full-screen overlay
- Window resizes to match image dimensions
- Screenshot is taken of the visible tab
- Image stored in
chrome.storage.local - Pasted to Gemini chat using DataTransfer events
- Clear button clears both the Gemini chat field AND stored images
- Click thumbnails in the Side Panel to remove individual images
- Images are captured at original dimensions (capped at 1920×1080)
- Allow time between captures for reliable results
- Make sure you're on
gemini.google.com - Try reloading the extension
- Ensure the Gemini chat field is visible
- Try clicking in the chat field first
- Wait for the full capture sequence to complete
- Check console for errors
This project is for personal use with Google Gemini.
Made for streamlined Gemini workflows 🚀