What it does
Stamp text on an image as a watermark, once or tiled, at the spot, size, angle, colour and opacity you choose.
It reads one AVIF, JPEG, JPG, PNG, TIFF or WEBP file. You get: the image with its watermark.
Step by step on the website
Use Watermark Image
Open Watermark Image on the website.
Open Watermark ImageDrop your AVIF, JPEG, JPG, PNG, TIFF or WEBP file on the page, or choose it.
Choose your settings, or keep the ones already chosen:
- Watermark: Text or Image (Text at first). Stamp words, or an image such as a logo.
- Watermark image: choose the file. Accepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files. Appears when Watermark is Image.
- Text: type it in. The words to stamp. Appears when Watermark is Text.
- Font: pick a font from the font list. The font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list. Appears when Watermark is Text.
- Opacity: a number from 1 to 100% (35% at first). How see-through the watermark is.
- Position: Top left, Top centre, Top right, Middle left, Centre, Middle right, Bottom left, Bottom centre or Bottom right (Bottom right at first). Where the watermark sits on the image.
- Placement: Preset or Custom spot (Preset at first). A preset spot, or exactly where you click.
- Across: a number from 0 to 100% (50% at first). From the left edge to the right edge. Appears when Placement is Custom spot.
- Down: a number from 0 to 100% (50% at first). From the top edge to the bottom edge. Appears when Placement is Custom spot.
- Scale: a number from 5 to 100% (30% at first). The logo's width as a share of the image width. Appears when Watermark is Image.
- Pattern: Once or Tiled (Once at first). One watermark, or a repeating pattern across the page.
- Tile spacing: a number from 40 to 1000 px (180 px at first). Distance between repeated watermarks. Appears when Pattern is Tiled.
- Font size: a number from 10 to 240 px. Leave it empty to size the text from the image width. Appears when Watermark is Text.
- Colour: pick a colour, or type a hex code such as #c62828. The text colour. Appears when Watermark is Text.
To fine-tune, open More options:
- Margin: a number from 0 to 2000 px (20 px at first). Space kept clear at the image edge.
- Rotation: a number from -180 to 180° (0° at first). Counter-clockwise; 0 keeps it level.
- Format: Same, JPG, PNG, WEBP, AVIF or TIFF (Same at first). Keep the same format, or save as another.
- Quality: a number from 1 to 100% (85% at first). Higher keeps more detail and makes a larger file.
- Background: pick a colour, or type a hex code such as #c62828. Fills transparent areas, which JPG cannot keep.
- File name: type a name, or keep the one suggested. Optional. The extension is added for you.
Select Watermark Image to run it.
When it finishes, select Download to save your result.
Settings
Every setting, with the name the page shows and the name the API uses. On the page: shown next to your file. More options: under More options. API only: not offered on the website.
| Setting | API name | Choices or values | Default | Where | What it does |
|---|---|---|---|---|---|
| Watermark | mode | Text (text), Image (image) | Text | On the page | Stamp words, or an image such as a logo. |
| Watermark image (required) | watermarkImage | A file | On the page, when Watermark is Image | Accepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files. | |
| Text (required) | text | Text | On the page, when Watermark is Text | The words to stamp. | |
| Font | fontFamily | Text | On the page, when Watermark is Text | The font the text is set in. The list shows every font you can use, including fonts you uploaded; see the fonts guide for the full list. | |
| Opacity | opacity | 1 to 100% | 35 | On the page | How see-through the watermark is. |
| Position | position | Top left (top-left), Top centre (top-center), Top right (top-right), Middle left (middle-left), Centre (middle-center), Middle right (middle-right), Bottom left (bottom-left), Bottom centre (bottom-center), Bottom right (bottom-right) | Bottom right | On the page | Where the watermark sits on the image. |
| Placement | positionMode | Preset (preset), Custom spot (custom) | Preset | On the page | A preset spot, or exactly where you click. |
| Across | xPercent | 0 to 100% | 50 | On the page, when Placement is Custom spot | From the left edge to the right edge. |
| Down | yPercent | 0 to 100% | 50 | On the page, when Placement is Custom spot | From the top edge to the bottom edge. |
| Margin | margin | 0 to 2000 px | 20 | More options | Space kept clear at the image edge. |
| Scale | scale | 5 to 100% | 30 | On the page, when Watermark is Image | The logo's width as a share of the image width. |
| Pattern | pattern | Once (single), Tiled (tile) | Once | On the page | One watermark, or a repeating pattern across the page. |
| Tile spacing | tileSpacing | 40 to 1000 px | 180 | On the page, when Pattern is Tiled | Distance between repeated watermarks. |
| Rotation | rotation | -180 to 180° | 0 | More options | Counter-clockwise; 0 keeps it level. |
| Font size | fontSize | 10 to 240 px | On the page, when Watermark is Text | Leave it empty to size the text from the image width. | |
| Colour | color | Text | #101511 | On the page, when Watermark is Text | The text colour. |
| Format | outputFormat | Same (same), JPG (jpg), PNG (png), WEBP (webp), AVIF (avif), TIFF (tiff) | Same | More options | Keep the same format, or save as another. |
| Quality | quality | 1 to 100% | 85 | More options | Higher keeps more detail and makes a larger file. |
| Background | background | Text | #ffffff | More options | Fills transparent areas, which JPG cannot keep. |
| File name | outputName | Text | More options | Optional. The extension is added for you. |
Run it with the API
Upload your file with POST /api/v2/documents, then start Watermark Image with POST /api/v2/document-operations and toolId watermark-image. The parameters use the API names in the settings table; anything you leave out takes its default. Read the operation until its state is completed, then download the output version.
The request below uses the same starting settings as the website. The script after it does the whole journey: upload, run, wait and download.
{
"documentId": "doc_8kq2W1",
"versionId": "ver_3Jx9Lm",
"toolId": "watermark-image",
"parameters": {
"text": "CONFIDENTIAL"
},
"idempotencyKey": "watermark-image-2026-11-22-1"
}#!/usr/bin/env bash
# Needs curl and jq.
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
set -euo pipefail
API="${WELLFRIEND_API_URL:-https://wellfriend.dev}"
WELLFRIEND_API_KEY="${WELLFRIEND_API_KEY:-YOUR_API_KEY}"
AUTH="Authorization: Bearer $WELLFRIEND_API_KEY"
RUN=$(uuidgen) # reuse this value to retry safely
# upload FILE CONTENT_TYPE KEY: prints the document id and its version id
upload() {
curl -sS --fail-with-body -X POST "$API/api/v2/documents" -H "$AUTH" -H "Idempotency-Key: $3" \
-H "Content-Type: $2" -H "X-Wellfriend-Filename: $(basename "$1")" --data-binary "@$1" \
| jq -r '"\(.document.id) \(.document.currentVersion.id)"'
}
read -r DOCUMENT_ID VERSION_ID < <(upload 'input.jpg' 'image/jpeg' "$RUN-upload")
# Run watermark-image
OP=$(jq -n --arg doc "$DOCUMENT_ID" --arg ver "$VERSION_ID" --arg key "$RUN-1" \
--argjson parameters '{"text":"CONFIDENTIAL"}' \
'{documentId: $doc, versionId: $ver, toolId: "watermark-image", parameters: $parameters, idempotencyKey: $key}' \
| curl -sS --fail-with-body -X POST "$API/api/v2/document-operations" -H "$AUTH" \
-H "Content-Type: application/json" -H "Idempotency-Key: $RUN-1" --data-binary @- | jq -r .operation.id)
while :; do
RESULT=$(curl -sS --fail-with-body "$API/api/v2/document-operations/$OP" -H "$AUTH")
STATE=$(echo "$RESULT" | jq -r .operation.state)
case "$STATE" in completed) break ;; failed|cancelled|canceled) echo "$RESULT" >&2; exit 1 ;; esac
sleep 1
done
DOCUMENT_ID=$(echo "$RESULT" | jq -r .operation.outputDocumentId)
VERSION_ID=$(echo "$RESULT" | jq -r .operation.outputVersionId)
# Download the result
curl -sS --fail-with-body "$API/api/v2/documents/$DOCUMENT_ID/versions/$VERSION_ID/content" -H "$AUTH" -o 'input-wellfriend.jpg'Run it with the SDKs
The SDKs upload the file, run watermark-image with the same parameters and wait for the result: wf.tools.watermarkImage() in TypeScript, wf.tools.watermark_image() in Python, wf.Tools.WatermarkImage() in Go.
// wellfriend-document-sdk: npm install wellfriend-document-sdk@latest. An ES module (top-level await): save it as .mts.
// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import { Wellfriend } from "wellfriend-document-sdk";
const wf = new Wellfriend({ apiKey: process.env.WELLFRIEND_API_KEY ?? "YOUR_API_KEY" });
const result = await wf.tools.watermarkImage("input.jpg", { text: "CONFIDENTIAL" });
await result.save("input-wellfriend.jpg");# wellfriend-document-sdk: pip install -U wellfriend-document-sdk
# Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
import os
from wellfriend import Wellfriend
wf = Wellfriend(api_key=os.environ.get("WELLFRIEND_API_KEY", "YOUR_API_KEY"))
result = wf.tools.watermark_image("input.jpg", text="CONFIDENTIAL")
result.save("input-wellfriend.jpg")// go get wellfriend.dev/go/wellfriend@latest
package main
import (
"context"
"fmt"
"os"
"wellfriend.dev/go/wellfriend"
)
func main() {
if err := run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func run() error {
// Your API key: set WELLFRIEND_API_KEY, or replace YOUR_API_KEY (keys: https://wellfriend.dev/dashboard/developer-api/keys).
apiKey := os.Getenv("WELLFRIEND_API_KEY")
if apiKey == "" {
apiKey = "YOUR_API_KEY"
}
wf := wellfriend.New(wellfriend.WithAPIKey(apiKey))
ctx := context.Background()
res, err := wf.Tools.WatermarkImage(ctx, wellfriend.File("input.jpg"), &wellfriend.WatermarkImageParams{Text: wellfriend.String("CONFIDENTIAL")})
if err != nil {
return err
}
return res.Save(ctx, "input-wellfriend.jpg")
}