pixel_scale_canvas
Rescale pixel art canvas to new dimensions using nearest-neighbor sampling. Preserves crisp pixels with integer ratios; non-integer ratios create deliberate distortion for animation frames.
Instructions
Rescale the canvas and its art to new dimensions with nearest-neighbor sampling (no blurring).
Integer multiples or divisors keep pixels perfectly crisp; other ratios will distort — useful deliberately for squash-and-stretch animation frames. Returns JSON {"canvas", "width", "height"}; plus a rendered image when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |