Add Pattern Effect
Add geometric pattern overlays to images with customizable colors, size, and rotation
Documentation de l'API
Point de terminaison de la requête
Paramètres de la requête
| Nom du paramètre | Type | Requis | Description |
|---|---|---|---|
| imageFile | file (Téléchargement requis) | Oui | Upload any image file to add pattern effect to |
| patternType | select | Non | Choose the type of geometric pattern |
| foregroundColor | color | Non | Color of the pattern elements |
| backgroundColor | color | Non | Background color of the pattern |
| size | number | Non | Size of pattern elements (1-50 pixels) |
| spacing | number | Non | Spacing between pattern elements (5-100 pixels) |
| opacity | number | Non | Opacity of the pattern (0.0 to 1.0) |
| rotation | number | Non | Rotation angle of the pattern (0-360 degrees) |
| blendMode | select | Non | Choose how the pattern blends with the image |
| outputFormat | select | Non | Choose output format or keep original |
| quality | number | Non | Output quality for lossy formats (WebP, JPEG) |
Les paramètres de type fichier doivent être téléchargés d'abord via POST /upload/image-add-pattern pour obtenir filePath, puis filePath doit être passé au champ de fichier correspondant.
Format de réponse
{
"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)"
}
Documentation de MCP
Ajoutez cet outil à votre configuration de serveur MCP:
{
"mcpServers": {
"elysiatools-image-add-pattern": {
"name": "image-add-pattern",
"description": "Add geometric pattern overlays to images with customizable colors, size, and rotation",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-add-pattern",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Vous pouvez chaîner plusieurs outils, par ex.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 outils.
Prend en charge les liens de fichiers URL ou la codification Base64 pour les paramètres de fichier.
Si vous rencontrez des problèmes, veuillez nous contacter à [email protected]