# Bulk Image Watermark (Text or Logo, Tiled, JPG/PNG/WebP) (`toowl/watermark-images`) Actor

Watermark hundreds of product photos at once: your logo or text (© Your Shop) in a corner, centre or a tiled diagonal pattern, with opacity and size. Resizes, fixes phone rotation, strips EXIF/GPS. One ZIP. Pay per image.

- **URL**: https://apify.com/toowl/watermark-images.md
- **Developed by:** [Chalid Ade](https://apify.com/toowl) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 images watermarked

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Bulk Image Watermark — text or logo, tiled, JPG/PNG/WebP

Protect hundreds of product photos in one go. Put your **logo** or a line of **text** (`© My Shop`, `@myshop`) in a corner, the centre, or as a **tiled diagonal pattern** over the whole image, then get every photo back in one ZIP, ready for Shopee, Tokopedia, Etsy, Amazon, Instagram or your own store.

### What you get

- **Logo or text** watermark. Text is bold with a soft outline, so it reads on light and dark photos
- **9 positions** plus a **tiled pattern** (angle and spacing adjustable), which is much harder to crop out
- **Size** (% of the photo width), **opacity**, **edge margin**
- **Resize** to a max side (e.g. 2048 px) in the same pass
- **Phone photos come out upright** (EXIF rotation applied)
- **Privacy**: camera data and GPS location are removed unless you keep them
- **JPG, PNG, WebP** output (or same as input), quality adjustable
- **One ZIP** with all images, plus a dataset row (with preview) per image

### Input

```json
{
  "files": [
    { "url": "https://example.com/products/shoe-1.jpg" },
    { "url": "https://example.com/products/shoe-2.jpg" }
  ],
  "logoUrl": "https://example.com/logo.png",
  "position": "br",
  "sizePercent": 20,
  "opacity": 70,
  "maxSide": 2048
}
```

Text instead of a logo, as a tiled pattern:

```json
{
  "files": [{ "url": "https://example.com/photo.jpg" }],
  "text": "© My Shop",
  "position": "tile",
  "opacity": 35,
  "angle": -30
}
```

### Output

```json
{
  "name": "shoe-1.jpg",
  "width": 2048,
  "height": 2048,
  "format": "jpg",
  "sizeKb": 512.3,
  "imageUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-shoe-1.jpg"
}
```

Plus `watermarked.zip` and a `SUMMARY` record in the run's key-value store.

### Pricing

Pay per event: one `image-watermarked` per image. Images that fail (broken link, not an image) are free. Cap spending with "Max cost per run".

### Free browser version

A handful of photos? [toowl.my.id/en/watermark-foto](https://toowl.my.id/en/watermark-foto/) watermarks them in your browser for free, without uploading anything. Same layout engine.

### Call it from your code

```bash
curl -X POST "https://api.apify.com/v2/acts/toowl~watermark-images/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"files":[{"url":"https://example.com/photo.jpg"}],"text":"© My Shop","position":"tile"}'
```

The same call works from Python (`apify-client`), JavaScript, Make, Zapier and n8n (Apify app/node or a plain HTTP request).

### Use it from AI agents (MCP)

Add this Actor as a tool to Claude, Cursor, VS Code or any MCP client through Apify's MCP server:

```
https://mcp.apify.com/?actors=toowl/watermark-images
```

The agent can then pass file URLs and read the results itself.

### More toowl file APIs

Speech to text & subtitles, AI vocal remover, text to speech, AI object remover, PDF to Markdown, PDF to Word & Excel, HTML/URL to PDF, OCR, Office to PDF, PDF compressor, PDF merge/split, PDF password protect, PDF to image, image to PDF, bulk watermark, image converter and compressor, background remover, AI upscaler, image to SVG, QR code and barcode generators, QR/barcode reader, favicon generator, video compressor, frame extractor and audio converter. All pay per file, all batch-friendly: [toowl.my.id/en/api](https://toowl.my.id/en/api/).

Questions or a format that fails? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `files` (type: `array`):

JPG, PNG, WebP, AVIF, TIFF or HEIF links (product photos, listings, portfolio shots).

## `text` (type: `string`):

e.g. © My Shop or @myshop. Ignored when a logo URL is given.

## `logoUrl` (type: `string`):

Use your logo instead of text. A PNG with a transparent background looks best.

## `color` (type: `string`):

white, black or a hex colour like #ffcc00. Text gets a soft outline so it reads on any photo.

## `position` (type: `string`):

A corner, an edge, the centre, or a repeated diagonal pattern over the whole image (hardest to crop out).

## `sizePercent` (type: `integer`):

Width of one watermark. Default 25 (22 for the tiled pattern).

## `opacity` (type: `integer`):

100 = solid, 30–60 = subtle.

## `marginPercent` (type: `integer`):

Space between the watermark and the edge, as % of the shorter side.

## `angle` (type: `integer`):

Rotation of the tiled pattern.

## `spacingPercent` (type: `integer`):

Gap between tiles, as % of the watermark's size.

## `maxSide` (type: `integer`):

0 keeps the original size. 2048 or 1200 suit marketplaces and social media.

## `format` (type: `string`):

Auto keeps PNG and WebP as they are and saves everything else as JPG.

## `quality` (type: `integer`):

JPG / WebP quality, 30–100.

## `keepMetadata` (type: `boolean`):

Off (default) removes camera data and GPS location from the output.

## `zip` (type: `boolean`):

Also saves watermarked.zip with every image.

## `maxFileSizeMb` (type: `integer`):

Larger files are skipped with an error (not charged).

## Actor input object example

```json
{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/invoice.jpg"
    }
  ],
  "text": "© My Shop",
  "color": "white",
  "position": "br",
  "opacity": 60,
  "marginPercent": 3,
  "angle": -30,
  "spacingPercent": 80,
  "maxSide": 0,
  "format": "auto",
  "quality": 88,
  "keepMetadata": false,
  "zip": true,
  "maxFileSizeMb": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input image, with a link to the watermarked file.

## `files` (type: `string`):

Watermarked images and watermarked.zip in the default key-value store, plus a SUMMARY record.

# 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 = {
    "files": [
        {
            "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/invoice.jpg"
        }
    ],
    "text": "© My Shop"
};

// Run the Actor and wait for it to finish
const run = await client.actor("toowl/watermark-images").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 = {
    "files": [{ "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/invoice.jpg" }],
    "text": "© My Shop",
}

# Run the Actor and wait for it to finish
run = client.actor("toowl/watermark-images").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 '{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/apify/samples/invoice.jpg"
    }
  ],
  "text": "© My Shop"
}' |
apify call toowl/watermark-images --silent --output-dataset

```

## MCP server setup

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

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/u2zp9TFdbtv0gxCuc/builds/ryoI6CV5ejp4uMO53/openapi.json
