This Adobe Express Add-on allows you to translate text within images using the "Nano Banana" (Google Gemini) API.
- Automatic Workflow: Select an image on the canvas, translate it, and the result is automatically added back to the document.
- Image Upload: Alternatively, upload an image file directly.
- Custom Prompts: Choose a target language or write a custom prompt for the AI.
The backend handles the communication with the Google Gemini API.
- Navigate to the
backenddirectory:cd backend - Install dependencies (if not already done):
npm install
- Important: Open
backend/.envand replaceYOUR_API_KEY_HEREwith your actual Google Gemini API key. - Start the server:
The server will run on
npm start
http://localhost:3000.
- Navigate to the
hello-worlddirectory:cd hello-world - Install dependencies:
npm install
- Start the add-on:
npm start
- Follow the instructions in the terminal to open the add-on in Adobe Express.
- Select an Image: In Adobe Express, select the image you want to translate on the canvas.
- Get from Canvas: Click "Get from Canvas" in the add-on panel.
- Translate: Choose a language and click "Translate Image".
- Result: The translated image will be displayed and automatically added to your canvas.
- The translation relies on the
gemini-3-image-previewmodel. - "Get from Canvas" relies on the Add-on SDK's rendition capabilities. If it fails for a specific element type, try taking a screenshot or using the "Upload File" option.