Image

Crop a region of an image

Extract a rectangular region (left, top, width, height) from the image.

post/image/crop

Request

  • Base URL: https://abundanceapis.com
  • URL: https://abundanceapis.com/image/crop
  • Auth: none declared

Request body

urlstring

Public image URL

base64string

Base64-encoded image (data URI ok)

output'binary' | 'base64'

Return the image bytes or JSON with base64

format'jpeg' | 'png' | 'webp' | 'avif'

Output format (default: keep input)

qualityinteger

Output quality (lossy formats)

leftinteger required
topinteger required
widthinteger required
heightinteger required

Example request

{
  "url": "https://picsum.photos/800",
  "width": 300,
  "height": 300
}

Changes

No recorded changes to this operation across all 1 revision of this API.