Skip to main content
Glama

FastMCP_RecSys

by attarmau
image_utils.py344 B
from PIL import Image def crop_by_bounding_box(image: Image.Image, bbox: dict) -> Image.Image: width, height = image.size left = int(bbox["Left"] * width) top = int(bbox["Top"] * height) right = left + int(bbox["Width"] * width) bottom = top + int(bbox["Height"] * height) return image.crop((left, top, right, bottom))

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/attarmau/StyleCLIP'

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