Add Pattern Effect
Add geometric pattern overlays to images with customizable colors, size, and rotation
Documentação da API
Ponto final da solicitação
Parâmetros da solicitação
| Nome do parâmetro | Tipo | Requerido | Descrição |
|---|---|---|---|
| imageFile | file (Upload necessário) | Sim | Upload any image file to add pattern effect to |
| patternType | select | Não | Choose the type of geometric pattern |
| foregroundColor | color | Não | Color of the pattern elements |
| backgroundColor | color | Não | Background color of the pattern |
| size | number | Não | Size of pattern elements (1-50 pixels) |
| spacing | number | Não | Spacing between pattern elements (5-100 pixels) |
| opacity | number | Não | Opacity of the pattern (0.0 to 1.0) |
| rotation | number | Não | Rotation angle of the pattern (0-360 degrees) |
| blendMode | select | Não | Choose how the pattern blends with the image |
| outputFormat | select | Não | Choose output format or keep original |
| quality | number | Não | Output quality for lossy formats (WebP, JPEG) |
Os parâmetros de tipo arquivo precisam ser carregados primeiro via POST /upload/image-add-pattern para obter filePath, depois filePath deve ser passado ao campo de arquivo correspondente.
Formato de resposta
{
"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)"
}
Documentação de MCP
Adicione este ferramenta à sua configuração de servidor 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"
}
}
}
Você pode encadear várias ferramentas, ex: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, máx 20 ferramentas.
Suporta links de arquivos URL ou codificação Base64 para parâmetros de arquivo.
Se você encontrar algum problema, por favor, entre em contato conosco em [email protected]