AgentGen icon

AgentGen

Generate PDFs and images from HTML using the AgentGen API

Compress Image

AI-generated

Summary

Compresses an image binary from the workflow using the AgentGen API

Inputs

  • compressBinaryPropertyName (required) — Name of the binary property on the incoming item that contains the image to compress

Output shape

API JSON response

Contains compression result details; returns an error object if compression fails

Examples

Example 1: Compress an image from a previous node's binary field

Set Input Binary Field to 'data' (or the actual binary field name from a prior node), optionally adjust Format and Mode in Compress Options

Links

Discussion