API & MCP

Everything a person can do on Lens Distortion, Color Fringe & Vignetting Correction, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Lens Distortion, Color Fringe & Vignetting Correction

Upload a photo and correct barrel or pincushion lens distortion with a two-term radial model, align the red and blue channels to reduce lateral color fringes, and brighten or darken the corners in linear light. Automatic scaling fills the frame without empty corners. Download a PNG plus the settings as JSON for the Lumina photo editor, where the same correction stays editable.

Inputs of Lens Distortion, Color Fringe & Vignetting Correction
FieldTypeDefaultDescription
image (required)file—Image (PNG, JPEG or WebP; up to 8 MB and 16 MP)
distortionnumber25Distortion (positive corrects barrel, negative pincushion). −100 to 100. The radial term k1 = −0.0025 × value.
edgenumber0Edge distortion (extra correction near the corners). −100 to 100. The 4th-order term k2 = −0.001 × value.
rednumber0Red fringe (positive shrinks the red channel). −100 to 100; 100 scales the red channel radius by 0.2 %.
bluenumber0Blue fringe (positive shrinks the blue channel). −100 to 100; 100 scales the blue channel radius by 0.2 %.
vignettenumber0Corner brightness (EV × 100 in the corners). −100 to 100; 100 brightens the corners by one stop in linear light.
autoScalebooleantrueFill the frame automatically
scalenumber100Manual scale (%) when automatic scaling is off

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-lens-correct": { "type": "http", "url": "https://luminalenscorrect.usefulweb.app/mcp" }
  }
}