Resize Document
photopea_resize_documentResize document canvas to new pixel dimensions and rescale all layers. Specify width and height to adjust size. Warning: destructive operation—undo available to revert changes.
Instructions
Resize the active document canvas to new pixel dimensions, resampling all layer content to fit. This is a destructive operation — all layers are scaled proportionally. Use undo to revert if needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | New document width in pixels | |
| height | Yes | New document height in pixels |