Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Compress Image

AI-generated

Summary

Compress images from the input item's specified binary property using defined image format and quality options, producing a compressed image in an output binary property.

Inputs

  • Tool Category — Choose the group of tools to show, here typically 'Image' for image compression.
  • Binary Property (required) — Name of the binary property on each input item that contains the image to compress.
  • Max Input Size Bytes — Maximum allowed size in bytes for the input image binary to process each item.
  • Output Binary Property — Name of the binary property where the compressed image file will be stored.
  • Image Options — Configuration options including output format (PNG, JPEG, WebP), image quality (1-100), and maximum output size in bytes.

Output shape

For each input item, returns the item with a compressed image binary stored in the specified output binary property.

Compression respects the max input size limit by skipping items exceeding it. Output image format and quality can be customized; default format is PNG and quality is 80. If compression fails for an item, an error is thrown.

Links

Discussion