Skip to main content
Glama

crop_image

Crop images to specific regions using pixel coordinates from the top-left corner. Define left, top, right, and bottom boundaries to extract desired portions of images.

Instructions

Crop an image to a specific region.

Coordinates are in pixels from the top-left corner.

Args: path: Absolute path to the image file. left: Left edge x coordinate. top: Top edge y coordinate. right: Right edge x coordinate. bottom: Bottom edge y coordinate. output_path: Where to save. Defaults to _cropped..

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
leftYes
topYes
rightYes
bottomYes
output_pathNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityaaery20/media-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server