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

Image URL → Crop Image

AI-generated

Summary

Crops an image to specified width and height, returning the processed image in a selected format.

Inputs

  • image_url — URL of the image to crop (required when using Image URL resource).
  • width (required) — Target width of the cropped image in pixels (minimum 1).
  • height (required) — Target height of the cropped image in pixels (minimum 1).
  • format — Output image format (JPG, PNG, or WEBP; defaults to JPG).

Output shape

One output item per input item containing a binary image and JSON metadata.

Binary data is returned with a filename matching the requested format (e.g., cropped-image.jpg).

Examples

Example 1: Crop a public image to a square 512x512 pixels.

Input URL: https://example.com/image.jpg; Width: 512; Height: 512; Format: JPG

Links

Discussion