Image Element Decomposition

Image Element Decomposition is a technique for controlling the generation and editing of specific components within AI-generated images using JSON-formatted control structures. The method was developed for use with Google’s Gemini image generation system and addresses the challenge of achieving granular control over individual elements in synthetic images without requiring full image regeneration.

How It Works

The technique involves structuring image specifications as JSON objects that identify and isolate distinct visual elements—such as objects, backgrounds, lighting, or compositional features—within a target image. By decomposing an image into these structured components, users can specify modifications to particular elements while leaving others unchanged. This allows for targeted edits and adjustments without needing to regenerate an entire image from scratch, which is both computationally more efficient and helps preserve elements that already meet the user’s requirements.

Applications

Image Element Decomposition is useful in iterative design workflows where creators need to refine specific aspects of generated images. Rather than regenerating a complete image when only minor adjustments are needed, the technique enables users to request changes to isolated components, making the creative process faster and more controllable. This approach is particularly valuable in professional creative contexts where consistency across multiple iterations is important.

Source Notes

  • 2026-04-08: Nano Banana 2: The JSON Control Hack