Categories

Batch Image Compress

Compress multiple images with quality control, output format selection, and size optimization

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/bmp, image/tiff, image/avif, image/heif

Key Facts

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

Overview

Batch Image Compress allows you to quickly reduce the file size of up to 100 images simultaneously while maintaining control over quality, output formats, and metadata settings.

When to Use

  • Preparing large batches of images for faster website loading speeds.
  • Reducing file sizes to meet email attachment or upload limit requirements.
  • Standardizing image formats and quality across a large collection of assets.

How It Works

  • Upload up to 100 image files in supported formats like JPEG, PNG, WebP, or AVIF.
  • Adjust your preferred compression settings, including target quality, output format, and resizing options.
  • Process the files in bulk and download the optimized images directly to your device.

Use Cases

Optimizing high-resolution photography for web galleries to improve page performance.
Batch converting a folder of PNGs to WebP format for modern browser compatibility.
Shrinking large image files to fit within specific storage or email size constraints.

Examples

1. Optimizing Website Assets

Web Developer
Background
A developer needs to upload 50 product images to a website, but the raw files are too large and will slow down page load times.
Problem
Reduce file sizes significantly without noticeable loss in visual quality.
How to Use
Upload the 50 images, set the output format to WebP, and select the 'Balanced' compression method.
Example Config
outputFormat: webp, compressionMethod: balanced, progressive: true
Outcome
The images are converted to WebP and compressed, resulting in a much smaller total site footprint while maintaining high visual fidelity.

2. Preparing Email Attachments

Office Administrator
Background
An administrator needs to send a report containing 20 high-resolution photos, but the total size exceeds the email provider's 25MB limit.
Problem
Compress images to fit within the email attachment limit.
How to Use
Upload the 20 photos and set a 'Target Size per File' to ensure the total batch size is well under the limit.
Example Config
targetSize: 1, targetQuality: 60, keepOriginalNames: true
Outcome
All 20 images are compressed to approximately 1MB each, allowing the entire set to be sent in a single email.

Try with Samples

image, png, jpg

Related Hubs

FAQ

How many images can I compress at once?

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

Can I change the file format of my images?

Yes, you can convert your images to JPEG, PNG, WebP, AVIF, or HEIF formats during the compression process.

Will my image quality be significantly reduced?

You can control the quality using the 'Target Quality' slider (1-100) or choose a compression method like 'Balanced' or 'High Quality' to suit your needs.

Can I keep my original EXIF metadata?

Yes, simply enable the 'Preserve Metadata' checkbox before starting the compression.

What is the maximum file size I can upload?

The total upload limit for the batch is 200MB.

API Documentation

Request Endpoint

POST /en/api/tools/batch-compress

Request Parameters

Parameter Name Type Required Description
imageFiles file (Upload required) Yes -
targetQuality number No -
targetSize number No -
outputFormat select No -
preserveAspectRatio checkbox No -
preserveMetadata checkbox No -
progressive checkbox No -
smartResize checkbox No -
keepOriginalNames checkbox No -
compressionMethod select No -

File type parameters need to be uploaded first via POST /upload/batch-compress 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-compress": {
      "name": "batch-compress",
      "description": "Compress multiple images with quality control, output format selection, and size optimization",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=batch-compress",
      "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]