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)

Key Facts

Category
Media
Input Types
file, select, color, checkbox, range, number
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Batch Image Trim allows you to efficiently remove unwanted borders or whitespace from up to 20 images simultaneously, streamlining your workflow with automated detection and bulk processing capabilities.

When to Use

  • Removing excess whitespace from product photography or scanned documents.
  • Standardizing image dimensions by automatically cropping uniform borders.
  • Preparing a large collection of images for web or print by trimming them in a single batch.

How It Works

  • Upload up to 20 image files in formats like JPEG, PNG, or WebP.
  • Select a trimming method such as Auto-detect, Whitespace removal, or Color-based trimming.
  • Adjust sensitivity or tolerance settings if necessary to refine the crop area.
  • Process the images and download your results as a convenient ZIP archive.

Use Cases

E-commerce managers cleaning up product photos to ensure consistent framing.
Graphic designers removing white margins from exported icons or assets.
Archivists cropping scanned documents to remove scanner bed borders.

Examples

1. Standardizing Product Catalog Images

E-commerce Manager
Background
A collection of 20 product photos was taken with varying amounts of empty white space around the items.
Problem
The inconsistent margins make the product gallery look unprofessional and unaligned.
How to Use
Upload the images, select 'Remove Whitespace', and set the sensitivity to 240 to ensure only the background is cropped.
Outcome
All 20 images are trimmed to the product edges and packaged into a ZIP file, ready for immediate upload to the website.

2. Batch Processing Scanned Documents

Administrative Assistant
Background
Multiple pages were scanned, resulting in dark, uneven borders from the scanner glass.
Problem
The dark borders distract from the document content and consume unnecessary file space.
How to Use
Upload the scans, choose 'Auto-detect Borders', and enable 'Create ZIP Archive'.
Outcome
The tool automatically detects and removes the scanner borders from all pages, providing a clean, professional set of documents.

Try with Samples

image, png, jpg

Related Hubs

FAQ

How many images can I process at once?

You can upload and process up to 20 images in a single batch.

What file formats are supported?

The tool supports JPEG, JPG, PNG, WebP, and TIFF formats.

Can I trim images based on a specific color?

Yes, select the 'Trim by Color' method and specify the background color you wish to remove.

Will my images be downloaded as individual files?

By default, the tool packages all processed images into a single ZIP archive for easy downloading.

Can I keep my original image metadata?

Yes, you can enable the 'Preserve Metadata' option to keep EXIF data intact during the trimming process.

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]