Skip to content

feat: Add Image Generator page with model and size selection#282

Open
ibehren1 wants to merge 1 commit intoaws-samples:mainfrom
ibehren1:add_image_generation
Open

feat: Add Image Generator page with model and size selection#282
ibehren1 wants to merge 1 commit intoaws-samples:mainfrom
ibehren1:add_image_generation

Conversation

@ibehren1
Copy link
Contributor

@ibehren1 ibehren1 commented Dec 17, 2025

Add Image Generator Page

Summary

Adds a dedicated Image Generator page for text-to-image generation using Amazon Bedrock image models.

Changes

New Features

  • Image Generator Page (/image-generator) - New standalone page for generating images from text prompts

    • Text prompt and negative prompt inputs
    • Model selection dropdown (filtered by AWS region)
    • Image size dropdown with pixel dimensions:
      • 1024×1024, 512×512 (1:1)
      • 1024×576, 1280×720 (16:9)
      • 576×1024, 720×1280 (9:16)
      • 1024×768 (4:3), 768×1024 (3:4)
      • 1152×768 (3:2), 768×1152 (2:3)
    • Output format selection (PNG, JPEG, WebP)
    • Image history with recent generations
    • Keyboard shortcut (⌘+Enter) to generate
  • Settings Integration - Added Image Generation section to Settings page for configuring default model

Model Updates

  • Updated IMAGE_GENERATION_MODELS to include only models with TEXT input and IMAGE output modalities:
    • Amazon: Nova Canvas, Titan Image Generator v1, Titan Image Generator v2
    • Stability AI: Stable Diffusion 3.5 Large, Stable Image Core, Stable Image Ultra

Files Changed

  • src/renderer/src/pages/ImageGeneratorPage/ImageGeneratorPage.tsx (new)
  • src/renderer/src/pages/SettingPage/components/sections/ImageGenerationSection.tsx (new)
  • src/renderer/src/i18n/locales/imageGenerator/index.ts (new)
  • src/common/models/models.ts (updated)
  • src/renderer/src/routes.tsx (updated)
  • src/renderer/src/pages/SettingPage/SettingPage.tsx (updated)

Testing

  • TypeScript compilation passes
  • All unit tests pass (261 tests)
  • Mac build successful

- Add new ImageGeneratorPage with text-to-image generation UI
- Add model dropdown with region-filtered image generation models
- Add image size dropdown with pixel dimensions (1024x1024, 512x512, etc.)
- Add ImageGenerationSection to Settings page for default model config
- Update IMAGE_GENERATION_MODELS to include only TEXT->IMAGE models:
  - Amazon: Nova Canvas, Titan Image Generator v1/v2
  - Stability: SD3.5 Large, Stable Image Core, Stable Image Ultra
- Add i18n translations for image generator feature
- Add route for /image-generator page
Copy link
Contributor

@daisuke-awaji daisuke-awaji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your suggestion. Instead of a dedicated page for image generation, please use an agent that utilizes an image generation tool within the agent chat function.

@ibehren1
Copy link
Contributor Author

ibehren1 commented Jan 24, 2026

@daisuke-awaji Can you publish an English version of the Nova Canvas Agent?

@daisuke-awaji
Copy link
Contributor

Hi! Thanks for the interest!

Sorry for the late reply. Yes, I'm planning to add English support soon. I'll let you know when it's ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants