API & MCP
Everything a person can do on HEIC/RAW Image Converter, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://heicrawconverter.usefulweb.site/api/v1/calculate– run HEIC/RAW Image ConverterGET https://heicrawconverter.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
HEIC/RAW Image Converter
Decodes HEIC/HEIF and AVIF photos with libheif and camera RAW files with LibRaw, applies the camera rotation and saves a JPG, PNG or WebP at the quality you choose. Shows the camera, lens and exposure details, and keeps or removes the EXIF metadata as you prefer.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | HEIC, AVIF or RAW photo. HEIC/HEIF (iPhone), AVIF or camera RAW (CR2, CR3, NEF, ARW, DNG, ORF, RW2, RAF, PEF…), max 50 MB and 100 megapixels. Deleted after processing; the result can be downloaded for about 2 hours. |
format | select (jpeg, png, webp) | "jpeg" | Output format |
quality | integer | 90 | Quality. For JPG and WebP. PNG is always lossless. |
keepExif | boolean | false | Keep EXIF metadata (camera, date, GPS location). Off removes all metadata, including the GPS location. |
autoOrient | boolean | true | Apply the camera rotation. Rotates the pixels upright. HEIC rotation is always applied because the HEIF format requires it. |
rawWhiteBalance | select (camera, auto) | "camera" | RAW white balance |
Example request
AVIF photo to JPG
curl -X POST https://heicrawconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"photo.avif","contentType":"image/avif","contentBase64":"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAC0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAABAAAAAMAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgSAAAAAAABNjb2xybmNseAABAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAADVtZGF0EgAKCDgM/thAQIGkMh8YAAooooQAxC02adqijwo4ID0p6Pgn+VaHUuOCSvH4"},"format":"jpeg","quality":85}'
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)
- Streamable HTTP endpoint:
https://heicrawconverter.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
heic_raw_converter - Local stdio connector:
node src/mcp-stdio.ts --tool=heic-raw-converter
{
"mcpServers": {
"heic-raw-converter": { "type": "http", "url": "https://heicrawconverter.usefulweb.site/mcp" }
}
}