Crop an image
Extract a rectangular region from an image, in one of three mutually exclusive modes. Manual: give the top-left corner (x, y) and dimensions (width, height) in pixels. Smart crop: give 'gravity' (attention, entropy, centre) plus width and height; the window is picked automatically, clamped to the source if the target is larger. Trim: set 'trim: true' (optional 'threshold') to remove a uniform background border via content detection; the applied rect is reported in X-Pictomancer-Trim-* headers. Optional enhancement modifiers: denoise (1-3), equalize, sharpen (applied denoise -> equalize -> op -> sharpen).
post/v1/crop
Request
- Base URL: https://api.pictomancer.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.pictomancer.ai/v1/crop
- Auth: none declared
Request body
Response
Processed image binary
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.