Skip to main content

Add Image Watermark To Image using n8n action

PDF4me Add Image Watermark To Image adds custom image watermarks to images through n8n automation workflows. Process images via n8n triggers, binary data, base64 strings, or public URLs to overlay watermark images (logos, stamps, signatures) with customizable positioning (corners, center, diagonal, custom coordinates), transparency control, sizing options, and offset adjustments. This solution is ideal for image branding, copyright protection, logo overlays, security watermarking, batch image processing, and automated watermark workflows that require professional image composition with flexible positioning and seamless integration.

Setup

Add the PDF4me "Add Image Watermark To Image" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Add Image Watermark To Image" action
  3. Configure input parameters (see below)
Add Image Watermark To Image

Parameters

Complete list of parameters for the Add Image Watermark to Image action. Configure these parameters to control watermark application.

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

ParameterTypeDescriptionExample
Input Image Data Type***StringImage Input Format Selection
• Choose the format of your source image data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
1) Binary DataYes (One Required)1) Binary Data - Use "Input Binary Field" to reference image file from previous node
2) Base64 StringYes (One Required)2) Base64 String - Use "Base64 Image Content" field for encoded image data
3) URLYes (One Required)3) URL - Use "Image URL" field to provide a public/open permission URL to the image file to watermark
Input Binary FieldBinaryBinary Image File Input (Required if Binary Data)
• Reference source image file from previous n8n node or file upload
• PDF4me processes binary image files with automatic format detection
• Required when Input Image Data Type is "Binary Data"
{{ $binary.data }}
Base64 Image ContentStringBase64 Encoded Image Input (Required if Base64 String)
• Provide source image data as base64 encoded string
• PDF4me automatically decodes and processes the image content
• Required when Input Image Data Type is "Base64 String"
iVBORw0KGgoAAAANSUhEUgAA...
Image URLStringPublic Image URL Input (Required if URL)
• Provide a public/open permission URL to the source image file
• PDF4me downloads and processes the file from the provided URL
• Required when Input Image Data Type is "URL"
https://abc.com/sam.jpg
Watermark Image Data Type***StringWatermark Format Selection
• Choose the format of your watermark image data input
• PDF4me supports multiple input types for flexible watermark management
• Options: Binary Data, Base64 String, or URL
Binary Data
1) Binary DataYes (One Required)1) Binary Data - Use "Watermark Binary Field" to reference watermark image file from previous node
2) Base64 StringYes (One Required)2) Base64 String - Use "Base64 Watermark Content" field for encoded watermark image data
3) URLYes (One Required)3) URL - Use "Watermark URL" field to provide a public/open permission URL to the watermark image file
Watermark Binary FieldBinaryYes (If Binary Data)PDF4me binary watermark file input - Reference watermark image file (.png, .jpeg) from previous n8n node or file upload. PDF4me processes binary watermark files with automatic format detection and validation. Required when Watermark Image Data Type is "Binary Data"
Base64 Watermark ContentStringYes (If Base64 String)PDF4me base64 encoded watermark input - Provide watermark image data (.png, .jpeg) as base64 encoded string for secure transmission. PDF4me automatically decodes and processes the watermark content with advanced compression and quality optimization for professional image watermarking workflows
Watermark URLStringYes (If URL)PDF4me public watermark URL input - Provide a public/open permission URL to the watermark image file (.png, .jpeg) to be used for watermarking. PDF4me downloads and processes the watermark file from the provided URL. Required when Watermark Image Data Type is "URL"
PositionStringYesPDF4me watermark positioning - Choose the position where the watermark will be placed on the source image. PDF4me provides predefined positions for consistent watermark placement across different image sizes and aspect ratios
Top RightYes (One Required)Top Right Position - Places watermark in the top-right corner of the image with precise corner alignment
Top LeftYes (One Required)Top Left Position - Places watermark in the top-left corner of the image with precise corner alignment
Bottom RightYes (One Required)Bottom Right Position - Places watermark in the bottom-right corner of the image with precise corner alignment
Bottom LeftYes (One Required)Bottom Left Position - Places watermark in the bottom-left corner of the image with precise corner alignment
Central HorizontalYes (One Required)Central Horizontal Position - Places watermark in the horizontal center of the image with precise center alignment
Central VerticalYes (One Required)Central Vertical Position - Places watermark in the vertical center of the image with precise center alignment
DiagonalYes (One Required)Diagonal Position - Places watermark diagonally across the image for watermark protection and branding
CustomYes (One Required)Custom Position - Allows custom positioning using Position X and Position Y coordinates for pixel-perfect placement
OpacityNumberYesPDF4me watermark transparency control - Set opacity level from 0.0 to 1.0 where 0.0 is entirely transparent and 1.0 is full opacity. PDF4me provides advanced transparency control for creating watermark effects, background logos, and layered image elements with professional visual impact
Horizontal OffsetNumberNoPDF4me horizontal offset positioning - Set horizontal offset in pixels to fine-tune watermark placement from the selected position. Positive values move the watermark right, negative values move it left. Default is 0 for precise positioning
Vertical OffsetNumberNoPDF4me vertical offset positioning - Set vertical offset in pixels to fine-tune watermark placement from the selected position. Positive values move the watermark down, negative values move it up. Default is 0 for precise positioning
Position XNumberNoPDF4me absolute X coordinate - Set absolute horizontal position in pixels from the left edge of the image. This overrides the Position setting when specified. Use for pixel-perfect watermark placement
Position YNumberNoPDF4me absolute Y coordinate - Set absolute vertical position in pixels from the top edge of the image. This overrides the Position setting when specified. Use for pixel-perfect watermark placement
RotationNumberNoPDF4me watermark rotation angle - Set rotation angle in degrees (0-360) to rotate the watermark. Positive values rotate clockwise, negative values rotate counterclockwise. Default is 0 for no rotation
Output File NameStringYesPDF4me watermarked image output filename - Specify the name for the generated watermarked image file with proper extension (.jpg, .png). PDF4me ensures unique naming and validates file format compliance
Binary Data Output NameStringYesPDF4me binary data mapping - Define the variable name for accessing the generated watermarked image binary data in your n8n workflow. This binary data can be used as input data in subsequent actions within your workflow

Supported Image Formats

FormatDescriptionFile ExtensionsMax SizeUse Cases
JPEGJoint Photographic Experts Group with optimized compression for photographic content.jpg, .jpeg50MBPhotographic watermarks, detailed images, high-quality image branding
PNGPortable Network Graphics with advanced transparency support and lossless compression.png50MBWatermarks with transparency, logos, stamps with transparency, professional branding
GIFGraphics Interchange Format with animation support and limited color palette.gif50MBAnimated watermarks, simple graphics, web-optimized branding
BMPBitmap image format with uncompressed pixel data and high quality.bmp50MBHigh-quality watermarks, detailed graphics, professional image processing

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringPDF4me generated image filename - The complete filename of the successfully generated watermarked image with proper extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processesimage_with_watermark.jpg
fileSizeNumberPDF4me image file size in bytes - The exact size of the generated watermarked image file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise image management and workflow automation245760
successBooleanPDF4me image watermark status indicator - Boolean flag indicating the success or failure of the image watermark addition process. PDF4me returns true for successful operations and false for any errors, enabling robust error handling in automated workflowstrue
mimeTypeStringPDF4me output MIME type - MIME type of the generated image file (e.g., "image/jpeg", "image/png"). Useful for content type validation and proper file handling in web applicationsimage/jpeg
messageStringPDF4me image watermark status message - Human-readable status message providing details about the image watermark addition process result. Includes success confirmation or error details for troubleshootingImage watermark added successfully

N8N Action Response

The PDF4me Add Image Watermark To Image 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:

[
{
"success": true,
"message": "Image watermark added successfully",
"fileName": "image_with_watermark.jpg",
"mimeType": "image/jpeg",
"fileSize": 245760
}
]

Use Cases

Professional Image Branding

  • Add corporate logos and watermarks to product images for brand consistency
  • Create branded social media content with consistent watermark placement
  • Implement copyright protection for digital photography and artwork

Automated Content Processing

  • Batch watermark processing for large image collections
  • Integrate watermarking into content management workflows
  • Automate image preparation for e-commerce and marketing materials

Enterprise Image Management

  • Standardize image branding across multiple departments
  • Implement automated watermarking for document and image workflows
  • Create consistent visual identity across all digital assets

Get Help