Categorías

Image Threshold

Apply threshold operation to convert images to black and white based on pixel intensity

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: image/jpeg, image/png, image/webp, image/gif, image/bmp, image/tiff

Pixels with value >= threshold become white (255), others become black (0)

If checked, the image will be converted to greyscale before applying threshold

Documentación de la API

Punto final de la solicitud

POST /es/api/tools/image-threshold

Parámetros de la solicitud

Nombre del parámetro Tipo Requerido Descripción
imageFile file (Subida requerida) -
threshold number Pixels with value >= threshold become white (255), others become black (0)
greyscale checkbox No If checked, the image will be converted to greyscale before applying threshold

Los parámetros de tipo archivo necesitan ser subidos primero vía POST /upload/image-threshold 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)"
}
Archivo: Archivo

Documentación de MCP

Agregue este herramienta a su configuración de servidor MCP:

{
  "mcpServers": {
    "elysiatools-image-threshold": {
      "name": "image-threshold",
      "description": "Apply threshold operation to convert images to black and white based on pixel intensity",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-threshold",
      "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]