GenerateImage
CUTools
Description
Create images programmatically for documentation and mockups! GenerateImage generates placeholder images, color gradients, patterns, and simple graphics - ideal for automated documentation workflows!
With support for different generation modes (color, gradient, pattern), text overlays, and custom dimensions, you create images on demand - without external design tools!
Why This Tool Stands Out
- Generate Images without design tools
- Colors & Gradients can be defined
- Text Overlays possible
- Automated creation
Perfect for:
Tech writers, developers, QA engineers, and anyone who needs to create images automatically for documentation, test data, or prototypes. Ideal for placeholders, test images, and simple graphics.
Workflow support; time savings depend on the task
Instead of opening design software and creating simple graphics by hand, generate them programmatically - perfect for automated documentation pipelines.
JSON Parameters
- width REQUIRED (Integer)The width of the image to generate, in pixels.
- height REQUIRED (Integer)The height of the image to generate, in pixels.
- outputPath OPTIONAL (String)Path for saving the generated image. If omitted, Base64 is returned.
- mode OPTIONAL (String)Generation mode: "solid" (single color), "gradient" (color gradient), "checkerboard" (checkered pattern), "noise" (image noise). Default: "solid"
- color1 OPTIONAL (String)Primary color as hex (e.g., "#ff00aa") or color name. Default: "#808080"
- color2 OPTIONAL (String)Secondary color for gradients or patterns. Default: "#ffffff"
- text OPTIONAL (String)Text to be written onto the image.
- format OPTIONAL (String)Output format: "PNG", "JPG", "BMP". Default: "PNG"
Example Call
{
"tool": "GenerateImage",
"params": {
"width": 800,
"height": 600,
"mode": "gradient",
"color1": "#ff00aa",
"color2": "#00f3ff",
"outputPath": "C:\\Images\\gradient.png"
}
}
Example with text:
{
"tool": "GenerateImage",
"params": {
"width": 400,
"height": 200,
"mode": "solid",
"color1": "#1a1a2e",
"text": "Placeholder",
"format": "PNG"
}
}
Example Usage
AI Command
- "Generate an image of a futuristic workspace for my presentation"
The AI assistant automatically recognizes that the GenerateImage tool should be used and creates a suitable image based on the prompt.
Related Tools
Return Values
The tool returns an object with the following properties:
- success (Boolean)
True if the generation was successful - imageData (String)
Base64-encoded image (if outputPath is not specified) - filePath (String)
Path to the saved image (if outputPath is specified) - width (Integer)
Image width in pixels - height (Integer)
Image height in pixels - format (String)
Image format used - mode (String)
Generation mode used - error (String, optional)
Error message if the generation failed
Download CUTools Now for Free
Experience the power of AI-driven computer control. Compatible with Windows 10/11.
Download for Free