Version: 1.0.0
Repository: github.com/mxmsmnv/BananaImagine
Author: Maxim Alex
License: MIT
Banana Imagine is a ProcessWire module that enables high-quality AI image generation within your Pageimage fields using the Google Gemini API.
Features
- Integrated UI: Seamless generation bar below your image fields.
- Batch Generation: Generate up to 4 variations at once.
- Smart Variations: Automatically adds subtle descriptors to batch prompts for variety.
- Native Storage: Selected images are saved directly to the page using ProcessWire's native methods.
- Clean Naming: Files are saved as
[PageID]-[Timestamp].jpg.
Installation
- Upload the
BananaImagine folder to your /site/modules/ directory. - Go to Modules > Refresh.
- Install Banana Imagine.
Configuration
- Obtain an API Key from Google AI Studio.
- Enter the key in the module settings.
- Select which image fields should display the Banana Imagine bar.
- Note: Google requires a linked billing account to use image-generation models.
How to Use
- Edit a page that has an enabled image field.
- Locate the yellow Banana Imagine bar.
- Type a description of the image you want (e.g., "A futuristic tropical forest at night").
- Choose the number of variations (1-4) and click Generate.
- Images will appear as they are processed.
- Click on the images you want to save. A yellow checkmark will appear on selected items.
- Save the Page. The selected images will be downloaded and added to your field permanently.