# Image resizer

**Use case:** 

Resize two image URLs to 1200 by 800 WebP files with cover fit, centered positioning, white padding, quality 80, and no metadata. Review one dataset row per successful image and use each output.url to download the generated file.

## Input

```json
{
  "images": [
    {
      "url": "https://placehold.co/1200x800.jpg?text=sample-1",
      "id": "image-resizer-1"
    },
    {
      "url": "https://placehold.co/1280x840.jpg?text=sample-2",
      "id": "image-resizer-2"
    }
  ],
  "combineImages": false,
  "targetPreset": "custom",
  "width": 1200,
  "height": 800,
  "fit": "cover",
  "position": "center",
  "paddingMode": "solid",
  "backgroundColor": "#FFFFFF",
  "outputFormat": "webp",
  "quality": 80,
  "preserveMetadata": false
}
```

## Output

```json
{
  "id": {
    "label": "ID",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "object"
  },
  "original": {
    "label": "Original image",
    "format": "object"
  },
  "output": {
    "label": "Generated image",
    "format": "object"
  },
  "metadataPreserved": {
    "label": "Metadata preserved",
    "format": "boolean"
  },
  "fileSizeLimitMb": {
    "label": "File size limit MB",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [Image Resizer API](https://apify.com/maximedupre/image-resizer-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/image-resizer-api.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/maximedupre/image-resizer-api.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`).
