# Resize image online

**Use case:** 

Resize image URLs online from Apify Console, API calls, schedules, and integrations, then export generated files and dataset rows.

## Input

```json
{
  "images": [
    {
      "url": "https://placehold.co/1200x800.jpg?text=online-resize",
      "id": "online-resize"
    }
  ],
  "combineImages": false,
  "targetPreset": "website_thumbnail",
  "width": 800,
  "height": 600,
  "fit": "contain",
  "position": "center",
  "paddingMode": "edge_extend",
  "backgroundColor": "#FFFFFF",
  "outputFormat": "webp",
  "quality": 80,
  "preserveMetadata": false
}
```

## Output

```json
{
  "id": {
    "label": "ID",
    "format": "string"
  },
  "source.type": {
    "label": "Type",
    "format": "string"
  },
  "source.url": {
    "label": "URL",
    "format": "string"
  },
  "output.url": {
    "label": "URL",
    "format": "string"
  },
  "output.width": {
    "label": "Width",
    "format": "integer"
  },
  "output.height": {
    "label": "Height",
    "format": "integer"
  },
  "output.format": {
    "label": "Format",
    "format": "string"
  },
  "output.sizeBytes": {
    "label": "Size bytes",
    "format": "integer"
  },
  "compressionRatio": {
    "label": "Compression ratio",
    "format": "number"
  },
  "fileSizeWithinLimit": {
    "label": "File size within limit",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [Image Resizer API](https://apify.com/maximedupre/image-resizer-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/image-resizer-api) to learn more, explore other use cases, and run it yourself.