Resize Canvas or Image
ps_resizeResize a Photoshop document by either adjusting canvas bounds or resampling image content. Specify new width and height, and optionally choose a resample method for image resize.
Instructions
Resizes the canvas (adds/removes space around content) or the image (resamples all content). Use "canvas" to change document bounds without scaling, or "image" to scale everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "canvas" changes bounds, "image" resamples content | |
| width | Yes | New width in pixels | |
| height | Yes | New height in pixels | |
| resampleMethod | No | Resampling method for image resize — default bicubic |