Elysia Tools Docs
RU
Язык
ZHESPTRUFRDEEN
На сайт
Обзор инструментов

Design

Add Pattern Effect

Add geometric pattern overlays to images with customizable colors, size, and rotation

file· Файловый результатОткрыть инструмент

Быстрый старт

Вызовите этот инструмент из своего кода на трёх языках.

cURL
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-add-pattern' \
  -H 'Content-Type: application/json' \
  -d '{"filename":"imageFile.ext","contentType":"application/octet-stream","size":12345}'

# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
  --data-binary @/path/to/file.ext

# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/ru/api/tools/image-add-pattern' \
  -F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
  -F 'patternType=dots' \
  -F 'foregroundColor=#000000' \
  -F 'backgroundColor=#ffffff' \
  -F 'size=10' \
  -F 'spacing=20' \
  -F 'opacity=0.8' \
  -F 'rotation=0' \
  -F 'blendMode=overlay' \
  -F 'outputFormat=original' \
  -F 'quality=90'

© 2026 Elysia Tools. Документация для разработчиков.

На сайтОбзор инструментов

Справочник API

Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.

Endpoint

HTTP
POST https://api.elysiatools.com/ru/api/tools/image-add-pattern

Параметры

ИмяТипОбязательныйОписание
imageFilefileнужна загрузкаДаUpload any image file to add pattern effect to
patternTypeselectНетChoose the type of geometric pattern
foregroundColorcolorНетColor of the pattern elements
backgroundColorcolorНетBackground color of the pattern
sizenumberНетSize of pattern elements (1-50 pixels)
spacingnumberНетSpacing between pattern elements (5-100 pixels)
opacitynumberНетOpacity of the pattern (0.0 to 1.0)
rotationnumberНетRotation angle of the pattern (0-360 degrees)
blendModeselectНетChoose how the pattern blends with the image
outputFormatselectНетChoose output format or keep original
qualitynumberНетOutput quality for lossy formats (WebP, JPEG)
Параметры типа «файл» необходимо сначала загрузить через POST /upload/image-add-pattern, затем возвращённый filePath передаётся в соответствующее поле.

Формат ответа

Файловый результат

JSON
{
  "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

Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.

Конфигурация сервера

Добавьте этот блок в конфигурацию вашего MCP-клиента:

mcp.json
{
  "mcpServers": {
    "elysiatools-image-add-pattern": {
      "name": "image-add-pattern",
      "description": "Add geometric pattern overlays to images with customizable colors, size, and rotation",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-pattern",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Получить список инструментов

После подключения к SSE-endpoint выведите список доступных инструментов:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Вызвать этот инструмент

Вызовите инструмент по его id; аргументы формируются из его параметров:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "image-add-pattern",
    "arguments": {
  "imageFile": "https://example.com/file.ext",
  "patternType": "dots",
  "foregroundColor": "#000000",
  "backgroundColor": "#ffffff",
  "size": 10,
  "spacing": 20,
  "opacity": 0.8,
  "rotation": 0,
  "blendMode": "overlay",
  "outputFormat": "original",
  "quality": 90
}
  }
}
Объединяйте несколько инструментов в одной сессии списком toolId через запятую, напр. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (макс. 20).
Файловые параметры принимают только публичный URL файла (https://…). Локальные пути, data: URI и строки Base64 не поддерживаются.

Вопросы или проблемы? Свяжитесь с [email protected]

Обзор инструментов
Открыть инструмент