# Thumbnail Maker (`rl1987/thumbnail-maker`) Actor

Generates thumbnails from a list of image URLs using ImageMagick.

- **URL**: https://apify.com/rl1987/thumbnail-maker.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Developer tools, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 thumbnail generateds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Thumbnail Maker

Generate thumbnails from a list of image URLs. Give it URLs, a target size, and an output format — get back a resized thumbnail for each one, powered by ImageMagick under the hood.

### What it does

- Downloads each image URL you provide.
- Resizes it to your target width/height, either fit-within-box (keeps aspect ratio, no cropping) or exact-size (crops to fill).
- Converts to your chosen output format: PNG, JPG, WebP, GIF, BMP, or TIFF.
- Saves every thumbnail to the run's key-value store and lists it in the dataset, alongside the original source URL.

### Input

| Field | Description |
|---|---|
| `imageUrls` | List of image URLs to thumbnail |
| `width` | Thumbnail width in pixels |
| `height` | Thumbnail height in pixels |
| `keepAspectRatio` | `true` fits the image within width × height without cropping; `false` crops to exactly width × height |
| `outputFormat` | `png`, `jpg`, `webp`, `gif`, `bmp`, or `tiff` |
| `jpegQuality` | Quality (1–100) for `jpg`/`webp` output |

### Output

One dataset row per image:

- `sourceUrl` — the original image URL
- `thumbnailUrl` — direct link to the generated thumbnail
- `thumbnailKey`, `width`, `height`, `format` — thumbnail details
- `success` / `error` — whether that image processed cleanly

Thumbnail files themselves live in the run's key-value store.

### Pricing

Pay per thumbnail successfully generated.

### Data pipeline toolkit

Part of the **Data pipeline toolkit** — small, chainable Actors for cleaning, transforming, and generating data inside a larger pipeline:

- [jq Helper – transform JSON with jq](https://apify.com/rl1987/jq-helper) — Run jq programs over inline JSON or a linked Apify dataset.
- [DuckDB Helper – SQL over CSV, JSON, Parquet, Excel, SQLite](https://apify.com/rl1987/duckdb-wrapper) — Run a DuckDB SQL query over remote/local files, push results to a dataset.
- [Regex Helper](https://apify.com/rl1987/regex-helper) — Apply named regular expressions to strings, extract structured matches.
- [URL Wrangler](https://apify.com/rl1987/url-wrangler) — Join, decompose, and rewrite URLs and query params in batch.
- [ZIP Code Helper](https://apify.com/rl1987/zip-code-helper) — Resolves US ZIP codes into city, state, county, and more.
- [Postal Address Normaliser](https://apify.com/rl1987/postal-address-normaliser) — Parses and normalises postal addresses using libpostal.
- [Phone Number Wrangler](https://apify.com/rl1987/phone-number-wrangler) — Validate, format, and parse phone numbers using libphonenumber.
- [UUID Generator](https://apify.com/rl1987/uuid-generator) — Generate bulk UUIDs (v1, v3, v4, v5, v7) on demand.
- [Secure Password & Passphrase Generator](https://apify.com/rl1987/password-generator) — Generate secure passwords and diceware passphrases per NIST guidance.
- [Katana Web Crawler (ProjectDiscovery)](https://apify.com/rl1987/pd-katana) — Crawl websites with Katana, stream results as JSONL.
- [ProjectDiscovery Notify](https://apify.com/rl1987/pd-notify) — Stream records to Slack, Discord, Telegram, Email, and more.

### Did you find this useful?

⭐ Rate this actor on Apify! Your feedback helps other users find it and helps us keep improving it.

# Actor input Schema

## `imageUrls` (type: `array`):

List of image URLs to generate thumbnails from.

## `width` (type: `integer`):

Target thumbnail width in pixels.

## `height` (type: `integer`):

Target thumbnail height in pixels.

## `keepAspectRatio` (type: `boolean`):

If enabled, image is resized to fit within width x height without cropping/distorting (ImageMagick 'thumbnail' resize). If disabled, image is resized and cropped to exactly width x height.

## `outputFormat` (type: `string`):

Output image file format.

## `jpegQuality` (type: `integer`):

Quality for lossy formats (jpg, webp), 1-100.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/5/55/Adidas_sneakers_display_-_several_left_shoes.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/a/a5/Black_Converse_sneakers.JPG",
    "https://upload.wikimedia.org/wikipedia/commons/a/ae/Sneaker_Light_003.jpg"
  ],
  "width": 200,
  "height": 200,
  "keepAspectRatio": true,
  "outputFormat": "png",
  "jpegQuality": 85
}
```

# Actor output Schema

## `thumbnails` (type: `string`):

Dataset rows: one per image, with sourceUrl and thumbnailUrl.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/5/55/Adidas_sneakers_display_-_several_left_shoes.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/a/a5/Black_Converse_sneakers.JPG",
        "https://upload.wikimedia.org/wikipedia/commons/a/ae/Sneaker_Light_003.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/thumbnail-maker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/5/55/Adidas_sneakers_display_-_several_left_shoes.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/a/a5/Black_Converse_sneakers.JPG",
        "https://upload.wikimedia.org/wikipedia/commons/a/ae/Sneaker_Light_003.jpg",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rl1987/thumbnail-maker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/5/55/Adidas_sneakers_display_-_several_left_shoes.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/a/a5/Black_Converse_sneakers.JPG",
    "https://upload.wikimedia.org/wikipedia/commons/a/ae/Sneaker_Light_003.jpg"
  ]
}' |
apify call rl1987/thumbnail-maker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rl1987/thumbnail-maker"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2p9sMlqKgv81ZYB0I/builds/FWi2PhcNWbokNS10j/openapi.json
