Design
Fügen Sie Wasserzeichen mit benutzerdefinierter Opazität zu Bildern hinzu, unterstützt Text- und Bildwasserzeichen mit erweiterten Opazitätskontrollen
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/image-watermark-opacity' \
-F 'file=@/path/to/imageFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/image-watermark-opacity' \
-F 'file=@/path/to/watermarkImageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/image-watermark-opacity' \
-F 'imageFile=/path/to/file.ext' \
-F 'watermarkType=text' \
-F 'watermarkText=© Watermark' \
-F 'watermarkImageFile=/path/to/file.ext' \
-F 'position=bottom-right' \
-F 'opacity=0.7' \
-F 'textOpacity=0' \
-F 'backgroundOpacity=0' \
-F 'fontSize=40' \
-F 'fontColor=#ffffff' \
-F 'backgroundColor=#000000' \
-F 'rotation=0' \
-F 'scale=0.2' \
-F 'margin=20' \
-F 'blendMode=over' \
-F 'textStyle=normal' \
-F 'fontWeight=bold' \
-F 'textAlign=left' \
-F 'shadowEnabled=false' \
-F 'shadowOpacity=0.5' \
-F 'shadowBlur=3' \
-F 'shadowOffsetX=2' \
-F 'shadowOffsetY=2' \
-F 'gradientEnabled=false' \
-F 'gradientStartColor=#ffffff' \
-F 'gradientEndColor=#cccccc' \
-F 'gradientDirection=horizontal'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/image-watermark-opacity| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| imageFile | fileUpload nötig | Ja | — |
| watermarkType | select | Ja | — |
| watermarkText | text | Nein | — |
| watermarkImageFile | fileUpload nötig | Nein | — |
| position | select | Ja | — |
| opacity | number | Nein | — |
| textOpacity | number | Nein | — |
| backgroundOpacity | number | Nein | — |
| fontSize | number | Nein | — |
| fontColor | color | Nein | — |
| backgroundColor | color | Nein | — |
| rotation | number | Nein | — |
| scale | number | Nein | — |
| margin | number | Nein | — |
| blendMode | select | Nein | — |
| textStyle | select | Nein | — |
| fontWeight | select | Nein | — |
| textAlign | select | Nein | — |
| shadowEnabled | checkbox | Nein | — |
| shadowOpacity | number | Nein | — |
| shadowBlur | number | Nein | — |
| shadowOffsetX | number | Nein | — |
| shadowOffsetY | number | Nein | — |
| gradientEnabled | checkbox | Nein | — |
| gradientStartColor | color | Nein | — |
| gradientEndColor | color | Nein | — |
| gradientDirection | select | 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)"
}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-image-watermark-opacity": {
"name": "image-watermark-opacity",
"description": "Fügen Sie Wasserzeichen mit benutzerdefinierter Opazität zu Bildern hinzu, unterstützt Text- und Bildwasserzeichen mit erweiterten Opazitätskontrollen",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-watermark-opacity",
"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": "image-watermark-opacity",
"arguments": {
"imageFile": "https://example.com/file.ext",
"watermarkType": "text",
"watermarkText": "© Watermark",
"watermarkImageFile": "https://example.com/file.ext",
"position": "bottom-right",
"opacity": 0.7,
"textOpacity": 0,
"backgroundOpacity": 0,
"fontSize": 40,
"fontColor": "#ffffff",
"backgroundColor": "#000000",
"rotation": 0,
"scale": 0.2,
"margin": 20,
"blendMode": "over",
"textStyle": "normal",
"fontWeight": "bold",
"textAlign": "left",
"shadowEnabled": false,
"shadowOpacity": 0.5,
"shadowBlur": 3,
"shadowOffsetX": 2,
"shadowOffsetY": 2,
"gradientEnabled": false,
"gradientStartColor": "#ffffff",
"gradientEndColor": "#cccccc",
"gradientDirection": "horizontal"
}
}
}Fragen oder Probleme? Kontakt: [email protected]