Media
Convert Nikon NEF RAW files to PNG format. Automatically extracts image dimensions and metadata from the RAW file.
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/nef-to-png' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/nef-to-png' \
-F 'imageFile=/path/to/file.ext' \
-F 'compressionLevel=6' \
-F 'width=Enter max width in pixels (leave empty to keep original)' \
-F 'height=Enter max height in pixels (leave empty to keep original)' \
-F 'brightness=1' \
-F 'saturation=1' \
-F 'highlight=0'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/nef-to-png| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | — |
| compressionLevel | range | No | PNG compression level (0-9). 0 = fastest/no compression, 9 = slowest/max compression. Default 6 for good balance. |
| width | text | No | — |
| height | text | No | — |
| brightness | range | No | Adjust image brightness. 1.0 = default, higher = brighter, lower = darker. |
| saturation | range | No | Adjust color saturation. 1.0 = default, higher = more vivid, lower = more muted. |
| highlight | range | No | Recover blown-out highlights. 0 = off, higher = more aggressive recovery. |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-nef-to-png": {
"name": "nef-to-png",
"description": "Convert Nikon NEF RAW files to PNG format. Automatically extracts image dimensions and metadata from the RAW file.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=nef-to-png",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "nef-to-png",
"arguments": {
"imageFile": "https://example.com/file.ext",
"compressionLevel": 6,
"width": "Enter max width in pixels (leave empty to keep original)",
"height": "Enter max height in pixels (leave empty to keep original)",
"brightness": 1,
"saturation": 1,
"highlight": 0
}
}
}Questions or issues? Contact [email protected]