Exactly.ai Image Generator
Exactly.ai Image Generator brings Exactly.ai into jContent. Exactly.ai learns a visual style from a set of images (your illustrations, your product photos, your campaign look) and generates new images in that style. With this module, editors do it all from jContent: the training images come from the site's media library, and the images they keep go back into it, ready to use on pages.
An Exactly.ai subscription is required. The module connects Jahia to your own Exactly.ai account: training and generation use that account's credits, billed by Exactly.ai. The subscription is not included with the module.
1. Style
- The styles of your Exactly.ai account, each with a thumbnail of what it looks like and its status (draft, training, ready), kept in sync with Sync from Exactly.ai.
- A style in training shows its progress right in the list, which updates by itself when the training ends.
- Create a style with New style, open its Training images at any time, delete the ones you no longer need.
2. Training
- Pick images opens jContent's media picker: choose images from the media library, then Send them to Exactly.ai.
- Images Exactly.ai would refuse are caught first: each image under 1024 px on its shortest side is named with its size, and nothing is sent until they all fit.
- Start training, follow the progress, then Back to draft to add images and train again.
3. Generation
- Write a prompt, choose 1 to 4 images and an aspect ratio from portrait 9:16 to landscape 16:9.
- Optional reference images from the media library guide the result: as a style, a sketch to follow, a product or a character to place.
- Select the results to keep, choose a folder of the site's media library and save. File name and title names the files and sets their title (by default, the prompt).
Secure by design
- Everything runs with the editor's own Jahia rights: the site must have the module enabled, viewing needs jContent access, and training, generating or saving needs write access. A reviewer can look but not spend your Exactly.ai credits.
- Only images the editor can read are sent to Exactly.ai, and saved images only go into the site's media library.
- The Exactly.ai token stays on the server, in the module's configuration, and is never sent anywhere but the Exactly.ai API.
Built with Jahia's own design system, in English and French.
Requirements: Jahia 8.2 with jContent 3.7 or later, and an Exactly.ai subscription with its API token, set in the org.jahia.se.modules.exactlyImageGenerator configuration. Enable the module on the sites that use it. Documentation and full change history: github.com/smonier/exactlyImageGenerator.
Video
Screenshots
How to install
Install directly from the Jahia Public Store, or build the module from https://github.com/smonier/exactlyImageGenerator
You will need an Exactly.ai API token (get from https://exactly.ai)
And update the org.jahia.se.modules.exactlyImageGenerator.cfg file through the OSGI configuration panel
FAQ
Where do I set my Exactly.ai token?
In the org.jahia.se.modules.exactlyImageGenerator configuration of the server, key exactly.api.token. The change is picked up without a restart; until the token is set, the app shows a warning and nothing is sent to Exactly.ai.
I do not see the app in jContent.
Enable the module on the site: the app appears in jContent's Additional accordion of the sites that use it.
Why are some of my images refused?
Exactly.ai needs images of at least 1024 px on their shortest side and at most 20 MB. The app names each refused image with the reason, and sends nothing until they all fit. At least 10 images are recommended to train a style.
Are the saved images published?
No. They are saved to the media library like any upload; publish them with the page that uses them.
This project is licensed under the MIT License.
You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of this software, including for commercial purposes, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.
The software is provided “as is”, without warranty of any kind, express or implied.