Categories

Batch Image Trim

Trim multiple images simultaneously using various trimming methods with batch processing and ZIP output

Click to upload files or drag and drop files here

Maximum file size: 50MB Maximum files: 20
Supported formats: image/jpeg, image/jpg, image/png, image/webp, image/tiff

Background color to trim for color-based method

Auto-detect background color for color/tolerance methods

0 40 100

Tolerance for border detection (0-100)

128 240 255

Sensitivity for whitespace detection (128-255)

API Documentation

Request Endpoint

POST /en/api/tools/batch-image-trim

Request Parameters

Parameter Name Type Required Description
imageFiles file (Upload required) Yes -
trimMethod select Yes -
backgroundColor color No Background color to trim for color-based method
autoDetectBackground checkbox No Auto-detect background color for color/tolerance methods
tolerance range No Tolerance for border detection (0-100)
sensitivity range No Sensitivity for whitespace detection (128-255)
format select No -
quality number No -
preserveMetadata checkbox No -
outputAsZip checkbox No -

File type parameters need to be uploaded first via POST /upload/batch-image-trim to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "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)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-batch-image-trim": {
      "name": "batch-image-trim",
      "description": "Trim multiple images simultaneously using various trimming methods with batch processing and ZIP output",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=batch-image-trim",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]