maximus Posted February 23 Posted February 23 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: https://github.com/mxmsmnv/BananaImagine 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: Feedback, bug reports, and feature ideas are very welcome! Thanks, Maxim 13
Jochen Fritsch Posted July 17 Posted July 17 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. 1
maximus Posted July 18 Author Posted July 18 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 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now