API & MCP

Everything a person can do on Photo Crop & Resize Planner, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Photo Crop & Resize Planner

Calculate a centered crop, final pixel dimensions and scale for a target box. Fit keeps the whole image; fill crops to the requested aspect ratio. Upscaling is optional.

Inputs of Photo Crop & Resize Planner
FieldTypeDefaultDescription
widthinteger6000Source width (px)
heightinteger4000Source height (px)
targetWidthinteger1080Target width (px)
targetHeightinteger1080Target height (px)
modeselect (contain, cover)"cover"Fit mode
upscalebooleanfalseAllow enlargement

Example request

Square social photo

curl -X POST https://luminaresizeplanner.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"width":6000,"height":4000,"targetWidth":1080,"targetHeight":1080,"mode":"cover","upscale":false}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "lumina-resize-planner": { "type": "http", "url": "https://luminaresizeplanner.usefulweb.site/mcp" }
  }
}