Batch Image Crop

Batch crop multiple images to specific dimensions or aspect ratios with custom positioning. Returns cropped images as a ZIP download.

Example Results

2 examples

Square crop

Crop images to square (1:1) format

batch-crop-square.zip View File
View input parameters
{ "imageFiles": [ "photo.jpg" ], "cropMode": "square", "gravity": "center" }

16:9 aspect ratio

Crop images to 16:9 widescreen format

batch-crop-16x9.zip View File
View input parameters
{ "imageFiles": [ "photo.jpg" ], "cropMode": "aspect", "aspectRatio": "16:9", "gravity": "center" }

Click to upload files or drag and drop files here

Maximum file size: 200MB Maximum files: 100
Supported formats: image/jpeg, image/jpg, image/png, image/webp, image/gif, image/tiff, image/avif, image/heif

Choose how to crop images: square, aspect ratio, exact dimensions, or custom positioning

Select a predefined aspect ratio for cropping

Set the exact width for cropped area

Set the exact height for cropped area

Choose where to position the crop area

Set the horizontal position for crop area (0 = left edge)

Set the vertical position for crop area (0 = top edge)

Choose output format or keep original

Output quality for lossy formats

Key Facts

Category
Images, Audio & Video
Input Types
file, select, number, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Batch Image Crop allows you to quickly crop up to 100 images simultaneously to standard aspect ratios, exact pixel dimensions, or custom coordinates. Supporting formats like JPEG, PNG, WebP, and AVIF, the tool processes your images with custom gravity positioning and outputs the cropped results in a single ZIP file.

When to Use

  • When you need to prepare a large batch of product photos for an e-commerce store by cropping them all to a uniform square (1:1) ratio.
  • When you want to crop multiple high-resolution photos to a specific widescreen (16:9) aspect ratio for a presentation or video project.
  • When you need to extract specific regions of multiple images using exact pixel coordinates and gravity positioning.

How It Works

  • Upload up to 100 images in supported formats such as JPEG, PNG, WebP, or AVIF.
  • Select your crop mode (square, aspect ratio, exact dimensions, or custom coordinates) and set the positioning gravity.
  • Choose your output format, quality level, and filename preferences, then click process to download the cropped images in a ZIP archive.

Use Cases

Standardizing product images to 1:1 square aspect ratios for online store catalogs.
Cropping portrait photos to 9:16 vertical aspect ratios for social media stories.
Trimming banners to exact pixel dimensions (e.g., 1200x630 px) for blog post headers.

Examples

1. E-commerce Product Image Standardization

Online Store Manager
Background
An online retailer has received 50 product photos in various dimensions and needs to make them all square for the catalog.
Problem
Manually cropping dozens of product photos to a 1:1 ratio is tedious and time-consuming.
How to Use
Upload the 50 product photos, set the Crop Mode to 'Square (1:1)', choose 'Center' gravity to keep products centered, and process the batch.
Example Config
Crop Mode: Square (1:1), Gravity: Center, Output Format: Keep original format
Outcome
A ZIP file containing all 50 images cropped to perfect squares, ready for upload to the e-commerce platform.

2. Widescreen Banner Cropping

Content Creator
Background
A blogger needs to crop 15 high-resolution landscape photographs to a 16:9 aspect ratio for website banners.
Problem
The original photos have different dimensions and need to be cropped to a widescreen format without losing the top portion of the scenery.
How to Use
Upload the 15 landscape photos, select 'Aspect Ratio' crop mode, choose '16:9' aspect ratio, set gravity to 'Top Center', and download the ZIP.
Example Config
Crop Mode: Aspect Ratio, Aspect Ratio: 16:9, Gravity: Top Center, Output Format: WebP, Quality: 90
Outcome
All 15 images are cropped to a 16:9 aspect ratio focusing on the top-center area, converted to WebP format, and packaged in a ZIP file.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What image formats are supported for batch cropping?

You can upload JPEG, JPG, PNG, WebP, GIF, TIFF, AVIF, and HEIF files.

How many images can I crop at the same time?

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

What is the maximum file size limit?

The total size limit for all uploaded images in a single batch is 200 MB.

Can I choose where the crop area is positioned?

Yes, you can position the crop area using gravity presets (like center, top, or bottom-right) or specify exact X and Y coordinates.

How are the cropped images delivered?

The cropped images are packaged together and downloaded as a single ZIP file.

API Documentation

Request Endpoint

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

Request Parameters

Parameter Name Type Required Description
imageFiles file (Upload required) Yes -
cropMode select Yes Choose how to crop images: square, aspect ratio, exact dimensions, or custom positioning
aspectRatio select No Select a predefined aspect ratio for cropping
width number No Set the exact width for cropped area
height number No Set the exact height for cropped area
gravity select No Choose where to position the crop area
x number No Set the horizontal position for crop area (0 = left edge)
y number No Set the vertical position for crop area (0 = top edge)
format select No Choose output format or keep original
quality number No Output quality for lossy formats
keepOriginalNames checkbox No -

File type parameters need to be uploaded first via POST /upload/image-batch-crop 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-image-batch-crop": {
      "name": "image-batch-crop",
      "description": "Batch crop multiple images to specific dimensions or aspect ratios with custom positioning. Returns cropped images as a ZIP download.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-batch-crop",
      "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]