new_canvas
Create a blank GIMP canvas with specified width, height, color mode, fill color, and resolution, then open it in a display window for immediate editing.
Instructions
Create a new blank canvas in GIMP and open it in a display window.
Parameters:
width: Canvas width in pixels
height: Canvas height in pixels
name: Layer/image name (default: "Untitled")
color_mode: "RGB" (default), "RGBA", "GRAY", "GRAYA"
fill: Fill color for the background layer. Any CSS color name or hex string: "white" (default), "black", "transparent", "#FF5733", "rgb(100,200,50)", etc.
resolution: DPI resolution (default: 72)
Returns:
image_id: internal GIMP image ID
width / height: confirmed dimensions
color_mode: confirmed mode
display_opened: whether a GIMP window was opened
Examples:
new_canvas(1024, 1024) — white 1024x1024 RGB canvas
new_canvas(1920, 1080, name="Background", fill="black")
new_canvas(512, 512, color_mode="RGBA", fill="transparent")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | white | |
| name | No | Untitled | |
| width | Yes | ||
| height | Yes | ||
| color_mode | No | RGB | |
| resolution | No |