Key Facts
- Category
- Images, Audio & Video
- Input Types
- file, select, color, checkbox, range, number
- Output Type
- file
- Sample Coverage
- 4
- API Ready
- Yes
Overview
Batch Image Trim allows you to upload up to 20 images in JPEG, PNG, WebP, or TIFF formats and automatically crop out unwanted borders, solid background colors, or excess whitespace. With flexible trimming methods like auto-detection, color-based trimming, and tolerance adjustments, you can clean up product photos or scanned documents in bulk and download the results in a single ZIP archive.
When to Use
- •When you need to remove solid white or transparent borders from a batch of product images for an e-commerce catalog.
- •When cleaning up scanned documents or digital sketches by stripping away excess outer whitespace.
- •When preparing a gallery of graphics where consistent framing is required by trimming custom background colors to the edge of the subject.
How It Works
- •Upload up to 20 images (JPEG, PNG, WebP, or TIFF) into the file selector.
- •Select your preferred trimming method, such as auto-detecting borders, removing whitespace, or targeting a specific background color.
- •Adjust parameters like trim tolerance, whitespace sensitivity, output format, and quality settings.
- •Process the images and download the trimmed results as a packaged ZIP archive or individual files.
Use Cases
Examples
1. Trimming White Borders from E-commerce Product Photos
E-commerce Store Manager- Background
- A batch of 15 product photos has inconsistent white margins, making the products look small and misaligned on the website.
- Problem
- Quickly remove the excess white borders from all 15 PNG images without manual cropping.
- How to Use
- Upload the 15 PNG files, select 'Remove Whitespace' as the Trim Method, set the Whitespace Sensitivity to 245, choose PNG as the output format, and click process.
- Example Config
-
Trim Method: Remove Whitespace, Sensitivity: 245, Output Format: PNG, Create ZIP Archive: Enabled - Outcome
- All 15 images are cropped tightly to the product boundaries and downloaded in a single ZIP file, ready for upload.
2. Batch Cleaning Scanned Document Margins
Digital Archivist- Background
- A set of scanned historical documents has dark, uneven borders from the scanner bed.
- Problem
- Remove the dark borders automatically across 10 TIFF scans to make the text clean and readable.
- How to Use
- Upload the TIFF files, select 'Tolerance-based Trim', enable 'Auto-detect Background', set the Trim Tolerance to 50, and set the output format to JPEG with 90% quality.
- Example Config
-
Trim Method: Tolerance-based Trim, Auto-detect Background: True, Trim Tolerance: 50, Output Format: JPEG, Quality: 90 - Outcome
- The dark scanner borders are automatically detected and trimmed, resulting in clean, cropped JPEG documents.
Try with Samples
image, png, jpgRelated Hubs
FAQ
What image formats are supported for batch trimming?
You can upload JPEG, JPG, PNG, WebP, and TIFF images up to 50MB in total size.
How does the tolerance-based trimming method work?
It detects and removes background pixels that are similar to the border color within a specified sensitivity range from 0 to 100.
Can I preserve the original metadata of my images?
Yes, check the 'Preserve Metadata' option to keep EXIF and other metadata in the output files.
What is the difference between auto-detect and color-based trimming?
Auto-detect automatically identifies the outer border color, while color-based trimming lets you specify a precise background color to remove.
Do I have to download the trimmed images one by one?
No, by default the tool packages all processed images into a single ZIP archive for easy downloading.