Skip to main content

Add Image Watermark to Image - Overlay API

PDF4me Add Image Watermark To Image is a powerful enterprise-grade solution that adds image watermarks to images through advanced API integration. This comprehensive image watermarking service efficiently processes image files, overlaying watermark images with precise positioning, custom opacity, rotation, and advanced image processing capabilities for enhanced image branding and protection. The API processes image watermarking by receiving source images and watermark images through REST API calls, utilizing advanced image processing technology and intelligent positioning algorithms for accurate watermark placement and professional image enhancement. With comprehensive support for multiple positioning options, flexible opacity control, custom rotation, precise positioning, and professional image processing, this solution is ideal for image branding, content protection, automated watermarking, and enterprise image workflows that require reliable image watermarking with guaranteed accuracy and consistent output quality. Add Image Watermark To Image documents easily with API for advanced image processing and branding.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Authenticating Your API Request​

To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.

Key Features​

  • Image Watermarking: Add image watermarks to images with precise positioning and control
  • Flexible Positioning: Support for multiple positioning options including diagonal, corners, and custom coordinates
  • Opacity Control: Adjustable watermark transparency for subtle or prominent branding
  • Rotation Support: Custom rotation angles for watermark orientation
  • Professional Results: High-quality image watermarking with accurate positioning and blending
  • Seamless API Integration: RESTful API designed for automated image processing workflows and enterprise system integration

REST API Endpoint​

The PDF4me REST API uses standard HTTP methods to interact with resources. All image watermarking operations are performed through a single endpoint:

  • Method: POST
  • Endpoint: /api/v2/AddImageWatermarkToImage

Supported Image Watermarking Features​

The API provides comprehensive support for various image watermarking and processing capabilities:

Watermark Positioning​

  • Multiple Position Options: Support for diagonal, corners, center, and custom positioning
  • Precise Coordinates: Custom X and Y positioning for pixel-perfect watermark placement
  • Flexible Layout: Support for various image sizes and aspect ratios
  • Professional Results: High-quality watermark positioning with accurate placement
  • Advanced Processing: Support for complex image layouts and watermark arrangements

Image Processing​

  • Opacity Control: Adjustable transparency levels for watermark visibility
  • Rotation Support: Custom rotation angles for watermark orientation
  • Blending Modes: Advanced image blending for natural watermark integration
  • Professional Quality: High-quality image processing with accurate color handling
  • Format Support: Support for various image formats and file types

Advanced Features​

  • Custom Positioning: Precise coordinate-based positioning for exact watermark placement
  • Offset Control: Horizontal and vertical offset adjustments for fine-tuning
  • Professional Enhancement: High-quality image enhancement with watermark integration
  • Flexible Options: Customizable processing parameters for specific requirements

REST API Parameters​

Complete list of parameters for the Add Image Watermark To Image REST API. Parameters are organized by category for better understanding and implementation.

Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.

ParameterRequiredWhat it doesExample
jobIdExtOptionalYour own reference for this call. It is stored with the API call log so you can correlate calls with your jobs. Type: string.
integrationsOptionalIntegration identifiers, forwarded unchanged with the job's notification settings. Type: array.
isAsyncOptionalSet to `true` to process the action asynchronously and get a job to poll at `/api/v2/GetActionStatus`. Only honoured by actions that support asynchronous processing. Type: boolean.
docNameOptionalSource file name including its extension. Several actions dispatch on the extension, so it should always be set; when omitted a per-action default is used. Type: string.stamp.jpg
docContentRequiredThe source file. Accepts the base64-encoded file content, a `pdf4meblobid://<id>` reference to a previously uploaded blob, or an `https` URL to the source document. Required: an empty value fails with `File is empty`. Type: string.JVBERi...
docContentBytesOptionalAlternative raw byte payload for the source file. Type: string.
callBackUrlOptionalOptional URL notified when an asynchronous job completes. Type: string.
watermarkFileNameOptionalFile name of the watermark image including its extension, e.g. `logo.png`. Type: string.stamp.jpg
watermarkFileContentOptionalRequired. The watermark image. Accepts the base64-encoded file content, a `pdf4meblobid://<id>` reference, or an `https` URL. Type: string.JVBERi...
positionOptionalWhere to place the watermark, e.g. `topright`, `topleft`, `bottomright`, `bottomleft`, `centralhorizontal`, `diagonal`, `centralvertical` or `custom`. Type: string.diagonal
horizontalOffsetOptionalHorizontal fine-tuning offset of the watermark position. Type: integer.0
verticalOffsetOptionalVertical fine-tuning offset of the watermark position. Type: integer.0
rotationOptionalRotation of the watermark in degrees. Type: number.0
opacityOptionalOpacity of the watermark, from `0.0` (transparent) to `1.0` (opaque). Type: number.1.0
positionXOptionalHorizontal position of the watermark when `position` is `custom`. Type: number.0
positionYOptionalVertical position of the watermark when `position` is `custom`. Type: number.0

Output​

The PDF4me Add Image Watermark To Image REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

{
"File Content": "Output file content from the PDF4me Connect"
}

Request Example​

Content-Type: application/json
Authorization: YOUR_API_KEY

Note: Get your API key from the PDF4me Dashboard

Payload​

{
"docName": "stamp.jpg",
"docContent": "Please put image base64 content",
"WatermarkFileName": "stamp.jpg",
"WatermarkFileContent": "Please put image base64 content",
"Position": "diagonal",
"Opacity": 1.0,
"PositionX": 0,
"PositionY": 0,
"Rotation": 0
}

Code Samples​

The PDF4me Add Image Watermark To Image REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:

C# (CSharp) Sample

Complete C# implementation for adding image watermarks to images:

Image Watermarking Features​

Watermark Positioning​

  • Multiple Position Options: Support for diagonal, corners, center, and custom positioning
  • Precise Coordinates: Custom X and Y positioning for pixel-perfect watermark placement
  • Flexible Layout: Support for various image sizes and aspect ratios
  • Professional Results: High-quality watermark positioning with accurate placement
  • Advanced Processing: Support for complex image layouts and watermark arrangements

Image Processing​

  • Opacity Control: Adjustable transparency levels for watermark visibility
  • Rotation Support: Custom rotation angles for watermark orientation
  • Blending Modes: Advanced image blending for natural watermark integration
  • Professional Quality: High-quality image processing with accurate color handling
  • Format Support: Support for various image formats and file types

Advanced Features​

  • Custom Positioning: Precise coordinate-based positioning for exact watermark placement
  • Offset Control: Horizontal and vertical offset adjustments for fine-tuning
  • Professional Enhancement: High-quality image enhancement with watermark integration
  • Flexible Options: Customizable processing parameters for specific requirements

Industry Use Cases & Applications​

Use Cases

  • Image Branding: Add company logos and branding elements to images for brand protection
  • Content Protection: Watermark images to prevent unauthorized use and protect intellectual property
  • Photography: Add photographer watermarks to protect professional photography work
  • Social Media: Brand images for social media marketing and content creation
  • E-commerce: Watermark product images for online stores and marketplaces
  • Documentation: Add watermarks to technical documentation and diagrams
  • Marketing: Brand marketing materials and promotional images
  • Business Process Automation: Automate image watermarking workflows for enterprise operations

Get Help​