Skip to main content

Add Image Watermark to Image

ImageAdd Image Watermark to Image

The Add Image Watermark to Image API overlays one image on another. You send the main image (docContent, docName), the watermark image (WatermarkFileContent, WatermarkFileName), Position (e.g. topright, centralhorizontal), and optionally Opacity, Rotation, offsets, and async. The API returns the image with the watermark applied. Use the tester below to try it; more details are in the sections that follow.

Try the Add Image Watermark to Image API

:::note Quick reference Endpoint: POST /api/v2/AddImageWatermarkToImage · Required: api-key, docContent, docName, WatermarkFileContent, WatermarkFileName, Position :::

:::info Try it live Use the form below to send your API key, main image and watermark image (Base64), and position. Adjust opacity and rotation as needed; the response is the watermarked image. No code required—fill the fields and click Send request. :::

Loading API Tester...

Overview, parameters, and use cases

What is Add Image Watermark to Image?

This endpoint overlays a watermark image on a main image. You provide both images (Base64), Position (e.g. topright, bottomleft, centralhorizontal, centralvertical, diagonal, custom), and optionally Opacity, HorizontalOffset, VerticalOffset, PositionX, PositionY, and Rotation. The API returns the combined image.

Key features

  • Positiontopright, topleft, bottomright, bottomleft, centralhorizontal, centralvertical, diagonal, or custom (PositionX, PositionY).
  • Opacity and rotation – Control visibility and angle of the watermark.
  • Offsets – Fine-tune position with HorizontalOffset and VerticalOffset.

:::tip Best for Use when you need to overlay a logo or graphic on images. For text overlays use Add Text Watermark to Image. :::

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A main image file (JPG, PNG, GIF, BMP, TIFF) in Base64 format
  • A watermark image file (JPG, PNG, GIF, BMP, TIFF) in Base64 format

Response Format

The API returns an image file with the image watermark applied.

Get Help