resize_design_document
Resize a design document to any preset or custom size, choosing to fill, fit, keep original, or adapt layout for a different aspect ratio.
Instructions
Resize a design document to a preset or explicit dimensions. Mode fill covers the canvas, fit keeps all content visible, original keeps layer sizes and only re-centres.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fill covers the canvas, fit keeps everything visible, original keeps layer sizes, adapt redistributes the layout for a different aspect ratio | fill |
| width | No | Target width, when no preset is used | |
| height | No | Target height, when no preset is used | |
| preset | No | Size preset id, such as instagram-story | |
| document | Yes | Source design document | |
| lockAspectRatio | No | Derive the missing axis from the source ratio |