Picsart Image AI icon

Picsart Image AI

Image processing with Picsart API: convert formats, crop, resize, remove backgrounds, enhance, upscale, restore faces, watermark, and analyze images

DATA → Resize Image

AI-generated

Summary

Resizes an image to specified pixel dimensions using the Picsart API.

Inputs

  • inputBinaryField (required) — The name of the input field containing the binary data of the image to resize. Typically comes from HTTP Request, Read Binary File, or previous processing nodes.
  • width (required) — Width of the resized image in pixels (minimum 1).
  • height (required) — Height of the resized image in pixels (minimum 1).
  • format — Output image format. Options: JPG, PNG, WEBP. Defaults to JPG.

Output shape

a binary file (the resized image) plus metadata in JSON.

The binary data is provided in the output item's binary data field, with a filename matching the specified format (e.g., 'resized-image.jpg').

Examples

Example 1: Resize a user-uploaded image to 800x600 pixels for a web display.

Set 'Input Binary Field' to 'data', 'Width' to 800, 'Height' to 600, and 'Format' to JPG.

Example 2: Convert a PNG image to a smaller WEBP format while resizing.

Set 'Input Binary Field' to 'data', 'Width' to 400, 'Height' to 300, and 'Format' to WEBP.

Links

Discussion