skip to content
$registry / workers

image-resize

v0.1.19

III engine image resize worker (JPEG/PNG/WebP, EXIF orient, scale-to-fit / crop-to-fit)

worker
iiiverified
122 installs5 in 7d1 today
install
$iii trigger compose::add worker=image-resize
binarylicense: Apache-2.0imagejpegmediapngresizewebp
  • macOS: arm64 · x64
  • Linux: arm64 · armv7 · x64
  • Windows: arm64 · x64

exact versions are immutable; binary and bundle artifacts are digest-pinned.

functions

1

image_resize::resize

function

Resize an image to a target width and height (thumbnail) over channel I/O.

request
  • input_channelobjectrequired

    StreamChannelRef (read) carrying metadata text + image binary

  • metadataobject

    Optional inline ImageMetadata override

    • formatstringenum: jpeg, png, webp

      Source image format

    • heightinteger
    • output_formatstringenum: jpeg, png, webp

      Desired output format (defaults to source format)

    • qualityinteger
    • strategystringenum: scale-to-fit, crop-to-fit
    • target_heightinteger
    • target_widthinteger
    • widthinteger
  • output_channelobjectrequired

    StreamChannelRef (write) for thumbnail output

response
  • formatstring
  • heightinteger
  • strategystring
  • widthinteger

triggers

0
no triggers registered