image-resize::on-config-change
Internal: re-read the image-resize configuration after a change.
- idstring
Configuration id that changed.
- okbooleanrequired
Downscale JPEG, PNG and WebP images to fit or fill a box (EXIF-aware, never enlarges; JPEG, PNG or lossy WebP out)
iii call compose::add worker=image-resizeRun in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Internal: re-read the image-resize configuration after a change.
Configuration id that changed.
Serve the image-resize worker's injected console UI assets (the target of its ade::ui::asset observers; the console calls it through each asset's observer with {path}).
The asset path from the observer's args (e.g. `state/page.js`).
The asset source, verbatim.
MIME type the console should serve the asset with.
Downscale a JPEG, PNG or WebP image read from input_channel to fit or fill a box, never enlarging it, and write JPEG, PNG or lossy WebP bytes to output_channel.
A stream the function reads: the ref of the read end of an engine pipe ({channel_id, access_key, direction: "read"}). The SDK opens it on first read.
Largest output in bytes: JPEG and WebP lower their quality, then shrink; PNG shrinks. Defaults to the configured limit, if any.
Largest output in pixels, width times height: a larger one shrinks further, keeping its aspect ratio. Defaults to the configured limit, if any.
Output format. Defaults to the input's format.
JPEG and WebP quality. Ignored for PNG. Defaults to the configured quality.
`scale-to-fit` fits the image inside the box; `crop-to-fit` centre-crops it to the box's aspect ratio, then shrinks it to the box. Defaults to the configured strategy.
Box height in pixels. The image is never enlarged. Defaults to the configured box.
Box width in pixels. The image is never enlarged. Defaults to the configured box.
A stream the function writes: the ref of the write end of an engine pipe ({channel_id, access_key, direction: "write"}). The SDK opens it on first write.
The JPEG or WebP quality used, which `max_bytes` can lower; absent for PNG.
Find workers, kits and executables, or jump to a page.