# Resize product photos to 1200 px JPG for online stores

**Use case:** 

Turn supplier or marketplace product photos into consistent JPG files for your online store: every photo fits inside 1200 × 1200 px (never enlarged), quality 85, camera and GPS metadata removed, files named product-00001.jpg and so on. The sample uses 8 public-domain product photos from The Met; replace them with your own image links or a scraper's dataset.

## Input

```json
{
  "imageUrls": [
    "https://images.metmuseum.org/CRDImages/ad/original/DP-20198-002.jpg",
    "https://images.metmuseum.org/CRDImages/ci/original/58.123.5a-b_CP4.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP103166.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP-12878-061.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP156496.jpg",
    "https://images.metmuseum.org/CRDImages/ci/original/29.1056a-b_CP4.jpg",
    "https://images.metmuseum.org/CRDImages/ad/original/DP235026.jpg",
    "https://images.metmuseum.org/CRDImages/es/original/DP-17308-030.jpg"
  ],
  "outputFormat": "jpeg",
  "quality": 85,
  "maxWidth": 1200,
  "maxHeight": 1200,
  "stripMetadata": true,
  "minWidth": 300,
  "minHeight": 0,
  "deduplicate": true,
  "fileNameTemplate": "product-{index}",
  "createZip": true,
  "zipMaxSizeMb": 500,
  "concurrency": 10,
  "maxRetries": 3,
  "requestTimeoutSecs": 30,
  "maxFileSizeMb": 25
}
```

## Output

```json
{
  "fileUrl": {
    "label": "File URL",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "fileName": {
    "label": "File name in ZIP",
    "format": "string"
  },
  "width": {
    "label": "Width",
    "format": "integer"
  },
  "height": {
    "label": "Height",
    "format": "integer"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "bytesOriginal": {
    "label": "Size before (bytes)",
    "format": "integer"
  },
  "bytesFinal": {
    "label": "Size after (bytes)",
    "format": "integer"
  },
  "savedPercent": {
    "label": "Saved %",
    "format": "number"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  }
}
```

## How it works

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

The Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP Actor is ready to run with the inputs already set for "Resize product photos to 1200 px JPG for online stores". [Sign up or log in](https://console.apify.com/create-task-from-example/fleALG7di6BsaMApg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Resize product photos to 1200 px JPG for online stores" task

The Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP Actor will start running based on the input automatically. You can also change all the input fields, like image urls, output format, and more, to match your specific use case.

### 3. Receive the "Resize product photos to 1200 px JPG for online stores" 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 file url, status, file name in zip, 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 "Resize product photos to 1200 px JPG for online stores" task via API](https://apify.com/zubayer01/bulk-image-downloader-optimizer.md).

## FAQ

### What size are the photos after the resize?

The Resize product photos task fits every photo inside 1200 × 1200 px and keeps its proportions, so a wide photo becomes 1200 px wide and a tall one 1200 px high. Smaller photos are never enlarged.

### Why JPG and not WebP?

JPG is accepted by most shop platforms and marketplace upload forms. The Resize product photos task saves JPG at quality 85; switch Output format to WebP if your store accepts it and you want smaller files.

### Is camera and GPS data removed?

Yes. The Resize product photos task removes EXIF, XMP and IPTC metadata such as GPS location and camera model, after turning each photo the right way up.

### How are the files named?

The Resize product photos task names files product-00001.jpg, product-00002.jpg and so on, in the order of your links. Change File name template to use {originalName} or dataset fields such as {sku}.

## About this Actor

This example demonstrates how to use [Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP](https://apify.com/zubayer01/bulk-image-downloader-optimizer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zubayer01/bulk-image-downloader-optimizer.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/zubayer01/bulk-image-downloader-optimizer.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`).
