Tool guides

Watermark Image

Stamp text on an image as a watermark, once or tiled, at the spot, size, angle, colour and opacity you choose.

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

  1. Open Watermark Image on the website.

    Open Watermark Image
  2. Drop your AVIF, JPEG, JPG, PNG, TIFF or WEBP file on the page, or choose it.

  3. 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.
  4. 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.
  5. Select Watermark Image to run it.

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

SettingAPI nameChoices or valuesDefaultWhereWhat it does
WatermarkmodeText (text), Image (image)TextOn the pageStamp words, or an image such as a logo.
Watermark image (required)watermarkImageA fileOn the page, when Watermark is ImageAccepts AVIF, JPEG, JPG, PNG, TIF, TIFF or WEBP files.
Text (required)textTextOn the page, when Watermark is TextThe words to stamp.
FontfontFamilyTextOn the page, when Watermark is TextThe 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.
Opacityopacity1 to 100%35On the pageHow see-through the watermark is.
PositionpositionTop 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 rightOn the pageWhere the watermark sits on the image.
PlacementpositionModePreset (preset), Custom spot (custom)PresetOn the pageA preset spot, or exactly where you click.
AcrossxPercent0 to 100%50On the page, when Placement is Custom spotFrom the left edge to the right edge.
DownyPercent0 to 100%50On the page, when Placement is Custom spotFrom the top edge to the bottom edge.
Marginmargin0 to 2000 px20More optionsSpace kept clear at the image edge.
Scalescale5 to 100%30On the page, when Watermark is ImageThe logo's width as a share of the image width.
PatternpatternOnce (single), Tiled (tile)OnceOn the pageOne watermark, or a repeating pattern across the page.
Tile spacingtileSpacing40 to 1000 px180On the page, when Pattern is TiledDistance between repeated watermarks.
Rotationrotation-180 to 180°0More optionsCounter-clockwise; 0 keeps it level.
Font sizefontSize10 to 240 pxOn the page, when Watermark is TextLeave it empty to size the text from the image width.
ColourcolorText#101511On the page, when Watermark is TextThe text colour.
FormatoutputFormatSame (same), JPG (jpg), PNG (png), WEBP (webp), AVIF (avif), TIFF (tiff)SameMore optionsKeep the same format, or save as another.
Qualityquality1 to 100%85More optionsHigher keeps more detail and makes a larger file.
BackgroundbackgroundText#ffffffMore optionsFills transparent areas, which JPG cannot keep.
File nameoutputNameTextMore optionsOptional. 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.

Request body
{
  "documentId": "doc_8kq2W1",
  "versionId": "ver_3Jx9Lm",
  "toolId": "watermark-image",
  "parameters": {
    "text": "CONFIDENTIAL"
  },
  "idempotencyKey": "watermark-image-2026-11-22-1"
}
cURL
#!/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.

TypeScript SDK
// 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");
Python SDK
# 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 SDK
// 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")
}