# Website image optimization workflow

**Use case:** 

Optimize website images for Core Web Vitals by resizing, converting formats, stripping metadata, and tuning compression quality.

## Input

```json
{
  "imageUrls": [
    "https://picsum.photos/id/1015/1800/1200.jpg",
    "https://picsum.photos/id/1039/1800/1200.jpg",
    "https://picsum.photos/id/1043/1800/1200.jpg"
  ],
  "outputFormat": "avif",
  "quality": 65,
  "maxWidth": 1600,
  "stripMetadata": true,
  "pngCompressionLevel": 9
}
```

## Output

```json
{
  "fileName": {
    "label": "File",
    "format": "text"
  },
  "originalFormat": {
    "label": "Original Format",
    "format": "text"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "originalSizeKB": {
    "label": "Original (KB)",
    "format": "number"
  },
  "optimizedSizeKB": {
    "label": "Optimized (KB)",
    "format": "number"
  },
  "savingsPercent": {
    "label": "Savings %",
    "format": "number"
  },
  "width": {
    "label": "Width",
    "format": "number"
  },
  "height": {
    "label": "Height",
    "format": "number"
  },
  "downloadUrl": {
    "label": "Download",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk Image Optimizer & Compressor](https://apify.com/automation-lab/bulk-image-optimizer) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/bulk-image-optimizer) to learn more, explore other use cases, and run it yourself.