灰度转换器
将颜色转换为灰度,支持多种转换方法和强度控制
API 文档
请求端点
POST /zh/api/tools/color-grayscale-converter
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| baseColor | color | 是 | - |
| conversionMethod | select | 否 | - |
| intensity | range | 否 | - |
| singleChannel | select | 否 | - |
| customWeights | textarea | 否 | Enter custom weights as JSON format. Example: {"red": 30, "green": 59, "blue": 11} |
| preserveLuminance | checkbox | 否 | - |
| batchColors | text | 否 | 输入多个颜色,用逗号分隔(例如:#FF0000, #00FF00, #0000FF) |
| includeOriginal | checkbox | 否 | - |
| showComparison | checkbox | 否 | - |
响应格式
{
"result": "Processed HTML content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
HTML:
HTML
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-color-grayscale-converter": {
"name": "color-grayscale-converter",
"description": "将颜色转换为灰度,支持多种转换方法和强度控制",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=color-grayscale-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]