# Compress Images to 100 KB: Bulk JPG & WebP Compressor

**Use case:** 

Make every image smaller than 100 KB (or any size you set): quality is lowered step by step, then the picture is made smaller only if needed, and each row says the quality used and whether the target was met. WebP or JPEG output, 1600 px wide. Pay per image.

## Input

```json
{
  "images": [
    "https://api.apify.com/v2/key-value-stores/T5HtoeQYut1ufwkKC/records/bgremove-product.jpg",
    "https://api.apify.com/v2/key-value-stores/T5HtoeQYut1ufwkKC/records/bgremove-portrait.jpg"
  ],
  "datasetField": "url",
  "preset": "custom",
  "sizes": [
    "1600"
  ],
  "fit": "contain",
  "cropPosition": "center",
  "backgroundColor": "#ffffff",
  "allowUpscale": false,
  "outputFormat": "webp",
  "quality": 82,
  "maxFileSizeKb": 100,
  "stripMetadata": true,
  "createZip": true,
  "maxImages": 100
}
```

## Output

```json
{
  "previewUrl": {
    "label": "Preview",
    "format": "string"
  },
  "url": {
    "label": "Original",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "inputFormat": {
    "label": "Input format",
    "format": "string"
  },
  "inputWidth": {
    "label": "Width",
    "format": "integer"
  },
  "inputHeight": {
    "label": "Height",
    "format": "integer"
  },
  "inputBytes": {
    "label": "Input bytes",
    "format": "integer"
  },
  "outputCount": {
    "label": "Files",
    "format": "integer"
  },
  "outputBytes": {
    "label": "Output bytes",
    "format": "integer"
  },
  "outputs": {
    "label": "Output files",
    "format": "array"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Bulk Image Resizer: Resize, Crop, Convert & Compress Actor is ready to run with the inputs already set for "Compress Images to 100 KB: Bulk JPG & WebP Compressor". [Sign up or log in](https://console.apify.com/create-task-from-example/wxXx2kwzVZKjyKjxF) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compress Images to 100 KB: Bulk JPG & WebP Compressor" task

The Bulk Image Resizer: Resize, Crop, Convert & Compress Actor will start running based on the input automatically. You can also change all the input fields, like image links, field with the links, and more, to match your specific use case.

### 3. Receive the "Compress Images to 100 KB: Bulk JPG & WebP Compressor" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as preview, original, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compress Images to 100 KB: Bulk JPG & WebP Compressor" task via API](https://apify.com/bossless/bulk-image-resizer.md).

## About this Actor

This example demonstrates how to use [Bulk Image Resizer: Resize, Crop, Convert & Compress](https://apify.com/bossless/bulk-image-resizer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bossless/bulk-image-resizer.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bossless/bulk-image-resizer.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
