Image Binary Converter
Convert images to binary (black and white) with customizable threshold and options
Documentación de la API
Punto final de la solicitud
Parámetros de la solicitud
| Nombre del parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
| imageFile | file (Subida requerida) | Sí | - |
| threshold | number | Sí | Pixels with value >= threshold become white, others become black |
| invert | checkbox | No | If checked, black and white colors will be inverted |
Los parámetros de tipo archivo necesitan ser subidos primero vía POST /upload/image-binary para obtener filePath, luego pasar filePath al campo de archivo correspondiente.
Formato de respuesta
{
"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)"
}
Documentación de MCP
Agregue este herramienta a su configuración de servidor MCP:
{
"mcpServers": {
"elysiatools-image-binary": {
"name": "image-binary",
"description": "Convert images to binary (black and white) with customizable threshold and options",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-binary",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Puede encadenar múltiples herramientas, por ejemplo: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, máximo 20 herramientas.
Soporte para enlaces de archivos URL o codificación Base64 para parámetros de archivo.
Si encuentra algún problema, por favor, póngase en contacto con nosotros en [email protected]