Resize a local image
abox_image_resizeResize JPEG, PNG, or WebP images to a target width and/or height with contain or cover fitting, then write a verified local output file; upscaling is disabled by default.
Instructions
Resize a still JPEG, PNG, or WebP with the existing abox.tools geometry and codecs. Specify width, height, or both. Contain fits the whole image; cover crops centrally. Upscaling is disabled by default. Writes and verifies a new local image; re-encoding may remove metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | contain | |
| width | No | ||
| format | No | keep | |
| height | No | ||
| quality | No | ||
| background | No | #ffffff | |
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| allow_upscale | No |