Crop an image to a pixel box, and/or rotate (90/180/270) and flip it
Crop an image to a pixel box, and/or rotate (90/180/270) and flip it - applied in that order. Send a public image URL or a base64 image. Returns the result as binary, or as a JSON data URI with dataUri:true. Deterministic.
Not tested: has real-world effectsour last check, 2026-09-24
0 of 0checks answered this week
n/amedian answer time
$0.002listed price per call
n/aprice it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agent402.tools/api/image-crop
| Category | Image and media |
|---|---|
| Provider host | agent402.tools |
| Networks | algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=, eip155:10, eip155:1329, eip155:137, eip155:143, eip155:42161, eip155:42220, eip155:43114, eip155:4663, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, stellar:pubnet |
| Payment schemes | exact, upto |
| Self-reported calls, 30 days | 5 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"dataUri": true,
"height": 40,
"left": 10,
"top": 10,
"url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/Canon_40D.jpg",
"width": 60
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"dataUri": {
"description": "return JSON {dataUri, width, height, bytes} instead of binary",
"type": "boolean"
},
"flip": {
"description": "horizontal | vertical | both",
"type": "string"
},
"format": {
"description": "output format: png (default), jpeg, bmp",
"type": "string"
},
"height": {
"description": "crop box height in px",
"type": "number"
},
"image": {
"description": "alternative: base64 image, optionally a data: URL",
"type": "string"
},
"left": {
"description": "crop box left edge in px (default 0)",
"type": "number"
},
"quality": {
"description": "jpeg quality 1-100 (default 80)",
"type": "number"
},
"rotate": {
"description": "rotate by 90, 180, or 270 degrees",
"type": "number"
},
"top": {
"description": "crop box top edge in px (default 0)",
"type": "number"
},
"url": {
"description": "public http(s) image URL (fetched server-side, 5MB cap)",
"type": "string"
},
"width": {
"description": "crop box width in px (required with height for a crop)",
"type": "number"
}
}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"bytes": {
"type": "integer"
},
"dataUri": {
"type": "string"
},
"height": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"dataUri",
"width",
"height",
"bytes"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}