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 → Crop Image

AI-generated

Summary

Crops an input binary image to specified width and height dimensions using the Picsart API.

Inputs

  • inputBinaryField — Name of the binary property containing the image data to crop. Defaults to 'data'.
  • width (required) — Target width of the cropped image in pixels.
  • height (required) — Target height of the cropped image in pixels.
  • format — Output image format. Accepts 'JPG', 'PNG', or 'WEBP'. Defaults to 'JPG'.

Output shape

a binary file and a single record

Returns the cropped image in the binary output alongside a JSON object detailing the crop settings, image source, and raw Picsart API response.

Examples

Example 1: Crop a binary image to a 512x512 square PNG

Set Input Binary Field to 'data', Width to 512, Height to 512, and Format to 'PNG'.

Links

Discussion