Media
Преобразование файлов иконок ICO в формат PNG с поддержкой прозрачности и настраиваемыми опциями вывода
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/ico-to-png' \
-F 'file=@/path/to/icoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/ico-to-png' \
-F 'icoFile=/path/to/file.ext' \
-F 'width=0' \
-F 'height=0' \
-F 'extractSize=auto' \
-F 'compressionLevel=9' \
-F 'adaptiveFiltering=true' \
-F 'preserveTransparency=true'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/ico-to-png| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| icoFile | fileнужна загрузка | Да | — |
| width | number | Нет | Output width in pixels (optional) |
| height | number | Нет | Output height in pixels (optional) |
| extractSize | select | Нет | — |
| compressionLevel | range | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-ico-to-png": {
"name": "ico-to-png",
"description": "Преобразование файлов иконок ICO в формат PNG с поддержкой прозрачности и настраиваемыми опциями вывода",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=ico-to-png",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "ico-to-png",
"arguments": {
"icoFile": "https://example.com/file.ext",
"width": 0,
"height": 0,
"extractSize": "auto",
"compressionLevel": 9,
"adaptiveFiltering": true,
"preserveTransparency": true
}
}
}| Уровень сжатия PNG (0=быстрее/больше, 9=медленнее/меньше) |
| adaptiveFiltering | checkbox | Нет | Enable adaptive filtering for better compression |
| preserveTransparency | checkbox | Нет | Keep ICO transparency in output PNG |
Файловый результат
{
"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)"
}Вопросы или проблемы? Свяжитесь с [email protected]