Media
Konvertiert eine Rohpixel-Pufferdatei ohne Header in ein JPEG-Bild. Bildabmessungen, Kanalanzahl und Bittiefe muessen angegeben werden.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/raw-to-jpg' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/raw-to-jpg' \
-F 'imageFile=/path/to/file.ext' \
-F 'width=1920' \
-F 'height=1080' \
-F 'channels=3' \
-F 'bitDepth=8' \
-F 'quality=85'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/raw-to-jpg| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| imageFile | fileUpload nötig | Ja | — |
| width | text | Ja | — |
| height | text | Ja | — |
| channels | select | Ja | — |
| bitDepth | select | Ja | — |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-raw-to-jpg": {
"name": "raw-to-jpg",
"description": "Konvertiert eine Rohpixel-Pufferdatei ohne Header in ein JPEG-Bild. Bildabmessungen, Kanalanzahl und Bittiefe muessen angegeben werden.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=raw-to-jpg",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "raw-to-jpg",
"arguments": {
"imageFile": "https://example.com/file.ext",
"width": "1920",
"height": "1080",
"channels": "3",
"bitDepth": "8",
"quality": "85"
}
}
}| quality | text | Nein | — |
Dateiergebnis
{
"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)"
}Fragen oder Probleme? Kontakt: [email protected]