Create Document
photopea_create_documentCreate a blank document with custom dimensions, resolution, and color mode to start a design project. Sets up the active canvas with a background layer for editing.
Instructions
Create a new blank document and make it the active document. This is typically the first step in a workflow. The document opens with a Background layer. Use open_file instead to edit an existing image.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Document width in pixels (e.g. 1920 for full HD) | |
| height | Yes | Document height in pixels (e.g. 1080 for full HD) | |
| resolution | No | Resolution in DPI (72 for screen, 300 for print) | |
| name | No | Document name shown in the title bar | Untitled |
| mode | No | Color mode (use RGB for most workflows) | RGB |
| fillColor | No | Background fill color as hex (e.g. #ffffff for white, #000000 for black). Defaults to white if omitted. |