resize
Scale the whole photo up or down. This is not a crop (use crop). Give width+height to stretch to an exact box, one alone to keep the aspect, or long_edge to scale by the longer side. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt. REFUSES when the photo has a masked filter, or any filter made outside Editmamei: resize before adding masked filters, not after. A large target can take tens of seconds; if the call times out the editing session restarts and unsaved work (filters, masks, any other open photo) is lost, so make a checkpoint before an aggressive resize. On this server the result must stay within the workspace's pixel limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id, as returned by open_photo. | |
| width | No | Target width, px. With height, stretches to exactly that box. Alone, height is derived to keep aspect. Capped at 30000 px/side and 250 MP total (a hard limit). | |
| height | No | Target height, px. See width. | |
| long_edge | No | Scale so the longer side lands here, preserving aspect. Use this OR width/height. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| effect_update_failures | No | Names of effect filters (position/direction/size-dependent ones tracked through geometry changes — a center, an angle, an offset, or a size-dependent blur radius under resize) whose own params could not be updated for this transform (a live update failure) -- they were restored to their OLD values in manage_filters's own ledger (guaranteed), and the live render was also asked to restore those same OLD values (best effort — it can, rarely, also fail). Omitted when every filter updated cleanly. |