Jump to content

Recommended Posts

Posted

Hi everyone,

I'd like to introduce Banana Imagine — a ProcessWire module that brings high-quality AI image generation directly into your image fields using the Google Nano Banana API.

Key features:

  • Clean generation interface right below supported image fields
  • Generate 1–4 variations at once
  • Smart subtle prompt variations for better batch diversity
  • Selected images saved natively to the page (with clean naming: [pageID]-[timestamp].jpg)
  • Simple configuration: API key + choose which image fields to enable

GitHub:

This module is a fork / spiritual successor to my previous module GrokImagine (xAI/Grok-based):
https://processwire.com/talk/topic/31744-grokimagine-ai-image-generation-via-xai/

Installation & usage instructions are in the README:
Just drop the folder into /site/modules/, install, add your Google AI API key (billing required for image gen), select fields → you're good to go.

Screenshots:
banana1.thumb.png.e308fb9823c11828f8efb28e94b22383.pngbanana2.thumb.png.ddf904ebf9bf5700607430e524c32ad3.pngbanana3.thumb.png.664d61634cf2c2b2f0f94bc435194991.pngbanana4.thumb.png.36184151b84beaa6ff61adbf1bd3f23e.pngbanana5.thumb.png.1875eff5878d1d703bd04360691858bd.pngbanana6.thumb.png.316d3641c2c46dab92f974630d6ff82a.png

Feedback, bug reports, and feature ideas are very welcome!

Thanks,
Maxim

  • Like 13
  • 4 months later...
Posted

Hi @maximus

I use your great Module in a RepeaterMatrix Profield Image. The BananaImage Bar didn`t show up in the RepeaterMatrix. It´s because auf the dynamic name-Field of the image field in the Repeater.
Here is a fix suggestion for the BananaImagine.module.php:

if(!in_array($inputfield->name, $useFields)) return;

updated
$trueFieldName = preg_replace('/_repeater\d+$/', '', $inputfield->name);
if(!in_array($trueFieldName, $useFields)) return;

This would make the module useable in RepeaterMatrix ProFields.

  • Like 1
Posted

Hi Jochen,

thank you for the report and the fix — you were absolutely right about the dynamic RepeaterMatrix field name. I've applied the normalization and pushed it to main. Banana Imagine now recognizes enabled image fields inside RepeaterMatrix items.

I also used the opportunity to publish a small 1.1.1 update:

- the default model is now Gemini 3.1 Flash Image (Nano Banana 2)
- added Gemini 3.1 Flash Lite Image, stable Gemini 3 Pro Image, and kept Gemini 2.5 Flash Image
- old gemini-3-pro-image-preview settings migrate automatically
- refreshed the README and added an AI/Olivia-friendly AGENTS.md plus a new project illustration

The same RepeaterMatrix fix was applied to GrokImagine too.

Thanks again for taking the time to track this down and share the patch!

GitHub: https://github.com/mxmsmnv/BananaImagine

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...