API & MCP

Everything a person can do on Photo Histogram & Clipping Analyzer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Photo Histogram & Clipping Analyzer

Upload a photo to measure luminance and RGB distributions, shadow and highlight clipping, and tonal percentiles. Download the full 256-bin analysis and get percentile-based black and white starting points.

Inputs of Photo Histogram & Clipping Analyzer
FieldTypeDefaultDescription
image (required)file—Image (PNG, JPEG or WebP; up to 8 MB and 16 MP)

Example request

Inspect a red image

curl -X POST https://luminahistogramanalyzer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"image":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"}}'

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-histogram-analyzer": { "type": "http", "url": "https://luminahistogramanalyzer.usefulweb.site/mcp" }
  }
}