Add Pattern Effect
Add geometric pattern overlays to images with customizable colors, size, and rotation
Документация API
Конечная точка запроса
Параметры запроса
| Имя параметра | Тип | Обязательно | Описание |
|---|---|---|---|
| imageFile | file (Требуется загрузка) | Да | Upload any image file to add pattern effect to |
| patternType | select | Нет | Choose the type of geometric pattern |
| foregroundColor | color | Нет | Color of the pattern elements |
| backgroundColor | color | Нет | Background color of the pattern |
| size | number | Нет | Size of pattern elements (1-50 pixels) |
| spacing | number | Нет | Spacing between pattern elements (5-100 pixels) |
| opacity | number | Нет | Opacity of the pattern (0.0 to 1.0) |
| rotation | number | Нет | Rotation angle of the pattern (0-360 degrees) |
| blendMode | select | Нет | Choose how the pattern blends with the image |
| outputFormat | select | Нет | Choose output format or keep original |
| quality | number | Нет | Output quality for lossy formats (WebP, JPEG) |
Параметры типа файл должны быть загружены сначала через POST /upload/image-add-pattern для получения filePath, затем filePath должен быть передан в соответствующее поле файла.
Формат ответа
{
"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)"
}
Документация MCP
Добавьте этот инструмент к конфигурации сервера 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"
}
}
}
Вы можете объединять несколько инструментов, например: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, максимум 20 инструментов.
Поддерживает ссылки на файлы URL или кодирование Base64 для параметров файла.
Если вы столкнулись с проблемами, пожалуйста, свяжитесь с нами по адресу [email protected]