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-resize@0.3.1Run 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.
Deprecated and ignored; removed in the next version. The input format is detected.
Deprecated and ignored; removed in the next version. The result reports `source_height`.
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.
Deprecated and ignored; removed in the next version. The result reports `source_width`.
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.
Find workers, kits and executables, or jump to a page.