# Image Watermark Adder: Text or Logo on Images from URLs (`kotaro-project/image-watermark-adder`) Actor

Add a text or logo watermark to images at public URLs. Choose the position (corners, centre or tiled), size, opacity, colour and margin, and get a download link for each marked image in JPEG, PNG or WebP. Pay per image; failed images are not charged.

- **URL**: https://apify.com/kotaro-project/image-watermark-adder.md
- **Developed by:** [KOTARO project](https://apify.com/kotaro-project) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 image watermarkeds

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/running/actors-in-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

## Image Watermark Adder: Text or Logo on Images from URLs

Protect product photos, previews and portfolio images before you share them. Give this tool the image addresses and your text or logo.

### What it does

- Adds a **text** or **logo** watermark
- **Position**: any corner, the centre, or **tiled** across the whole image
- Choose **size**, **opacity**, **colour** and **margin**
- Saves as **JPEG, PNG or WebP** and returns a download link for each image

### Input

```json
{
  "imageUrls": ["https://example.com/photo.jpg"],
  "text": "(c) Example Studio",
  "position": "bottom-right",
  "sizePercent": 20,
  "opacity": 0.5
}
```

With a logo instead of text: `"watermarkImageUrl": "https://example.com/logo.png"`

### Output

```json
{
  "imageUrl": "https://example.com/photo.jpg",
  "outputUrl": "https://api.apify.com/v2/key-value-stores/.../records/watermarked-1a2b3c.jpg",
  "width": 1600,
  "height": 1067,
  "bytes": 254321
}
```

### Notes

- Up to 200 images per run, 50 MB each. Only public addresses are accepted.
- Text watermarks support Latin letters, numbers and common symbols. For other scripts, use a logo image.
- Use only images you have the right to use.

### Sample input

The sample photo is NASA image iss073e0532039 ("Earth Observation", taken from the International Space Station). NASA images are generally not subject to copyright in the United States. NASA does not endorse this tool.

### Pricing

Pay per marked image. Failed images are not charged. An empty run returns a free note.

# Actor input Schema

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

Public http(s) addresses of the images to mark (JPEG, PNG, WebP and more). Up to 200 per run, 50 MB each.

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

Text to place on the images, for example (c) Your Name. Latin letters, numbers and common symbols. Leave empty when you use a watermark image.

## `watermarkImageUrl` (type: `string`):

Optional public address of a logo (a PNG with a transparent background works best). When given, it is used instead of the text.

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

Where to place the watermark. tile repeats it across the whole image.

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

Width of the watermark as a share of the image width.

## `opacity` (type: `number`):

0.05 is almost invisible, 1 is solid.

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

Colour of the text watermark, for example #ffffff.

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

Space between the watermark and the image edge.

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

same keeps the original format when possible.

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

Higher keeps more detail and makes bigger files.

## Actor input object example

```json
{
  "imageUrls": [
    "https://images-assets.nasa.gov/image/iss073e0532039/iss073e0532039~medium.jpg"
  ],
  "text": "(c) Example Studio",
  "position": "bottom-right",
  "sizePercent": 20,
  "opacity": 0.5,
  "color": "#ffffff",
  "marginPercent": 3,
  "format": "same",
  "quality": 90
}
```

# Actor output Schema

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

No description

# 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://images-assets.nasa.gov/image/iss073e0532039/iss073e0532039~medium.jpg"
    ],
    "text": "(c) Example Studio"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kotaro-project/image-watermark-adder").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://images-assets.nasa.gov/image/iss073e0532039/iss073e0532039~medium.jpg"],
    "text": "(c) Example Studio",
}

# Run the Actor and wait for it to finish
run = client.actor("kotaro-project/image-watermark-adder").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://images-assets.nasa.gov/image/iss073e0532039/iss073e0532039~medium.jpg"
  ],
  "text": "(c) Example Studio"
}' |
apify call kotaro-project/image-watermark-adder --silent --output-dataset

```

## MCP server setup

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

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/u1kqdUXEzCwEf8mKe/builds/4uIIPgIhWZ3f1lVjf/openapi.json
