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.
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.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| jobIdExt | Optional | Your own reference for this call. It is stored with the API call log so you can correlate calls with your jobs. Type: string. | |
| integrations | Optional | Integration identifiers, forwarded unchanged with the job's notification settings. Type: array. | |
| isAsync | Optional | Set 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. | |
| docName | Optional | Source 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 |
| docContent | Required | The 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... |
| docContentBytes | Optional | Alternative raw byte payload for the source file. Type: string. | |
| callBackUrl | Optional | Optional URL notified when an asynchronous job completes. Type: string. | |
| watermarkFileName | Optional | File name of the watermark image including its extension, e.g. `logo.png`. Type: string. | stamp.jpg |
| watermarkFileContent | Optional | Required. The watermark image. Accepts the base64-encoded file content, a `pdf4meblobid://<id>` reference, or an `https` URL. Type: string. | JVBERi... |
| position | Optional | Where to place the watermark, e.g. `topright`, `topleft`, `bottomright`, `bottomleft`, `centralhorizontal`, `diagonal`, `centralvertical` or `custom`. Type: string. | diagonal |
| horizontalOffset | Optional | Horizontal fine-tuning offset of the watermark position. Type: integer. | 0 |
| verticalOffset | Optional | Vertical fine-tuning offset of the watermark position. Type: integer. | 0 |
| rotation | Optional | Rotation of the watermark in degrees. Type: number. | 0 |
| opacity | Optional | Opacity of the watermark, from `0.0` (transparent) to `1.0` (opaque). Type: number. | 1.0 |
| positionX | Optional | Horizontal position of the watermark when `position` is `custom`. Type: number. | 0 |
| positionY | Optional | Vertical 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
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
{
"File Content": "Output file content from the PDF4me Connect"
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| File Content | Output file content from the PDF4me Connect |
Schema View
The data structure and types of the response:
1 item
File Content: Binary Output file content from the PDF4me Connect
Type Indicators:
Binary= Binary data
Binary Data View
The actual watermarked image file data:
data
─────────────────────────────
File Content: Output file content from the PDF4me Connect
Binary Data Access:
- Image Content: Ready for download or further processing
- Watermarked Image: Complete image with watermark overlay
Request Example
Header
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#
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda
Google Script Sample
Google Apps Script implementation for Google Workspace integration:
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
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