In this guide you’ll learn how to automatically add a watermark to an image file using Power Automate. You can add text, rectangles, images, PDF files, QR Codes, barcodes and other shapes as watermarks to your image.
In this specific example we will add a text watermark to a JPG file located in Dropbox and then create a new version of the watermarked image in a specified location within OneDrive for Business.
It’s important to note that we support a wide variety of files and you can easily adjust the file to be watermarked to be a PNG, TIFF, BMP or other file type (see file formats we support). You can also watermark images on other platforms like SharePoint, Google Drive, or any platform supported by Power Automate. Customize our example by adding additional automation like sending a watermarked image via email.
Before we start building the workflow, ensure all prerequisites are in place.
Make sure you have a full or free trial subscription to PDF Converter for Power Automate.
Naturally, in Microsoft O365, permission to use Power Automate needs to be available to the user as well, in addition to OneDrive for Business.
You will need to have the appropriate privileges to create Flows.
You have a Dropbox account and it is connected with Flow.
Using Power Automate to add Text Watermark to Images
Here’s how to add text watermark to image files with PDF Converter for Power Automate:
Insert ‘When a file is created (properties only)’ Flow action for Dropbox and select the folder location of the PDF files:
Folder: */muhimbi documents
Insert ‘Condition’ Flow action and set the condition as follows:
‘List of File Names’, which is the output of ‘When a file is created (properties only)’ action, ends with ‘,jpg’.
If the step above evaluates to true, add the ‘Get file content’ for Dropbox action in the ‘If yes’ box. Enter the following:
**File: *‘***List of File Id’, which is the output of ‘When a file is created (properties only)’ action.
- Insert the Muhimbi ‘Add text watermark’ action. This workflow action can be used to apply the text to the foreground or background of images with full control over the font, style, size, and color. The text stored in the content field may contain embedded field codes such as the date or current page number. MS Flow expressions are also supported, which makes it possible for dynamic information stored in workflow variables, or in the Item’s columns, to be embedded in the watermark.
Add the following mandatory fields to the action.
**Source file content: *‘***File Content’, which is the output of ‘Get file content’ action.
Watermark content: Enter the text you want to be displayed in your watermark.
Font size: Enter the watermark font size.
Font color: Enter the watermark font color.
Text alignment: Select the text alignment of the watermark.
Word wrap: Select the word wrap style for the watermark.
Position: Select the position in the image where you want the watermark to be displayed.
- Insert the OneDrive for Business ‘Create file’ action after the ‘Add text watermark’ action.
The action has three main parameters
Folder Path: The Path of your destination Folder.
File name: ‘**List of Files Name’, which is the output of ‘When a file is created (properties only)’ action..
File Content: ‘Processed file content’ is the output of action *‘Add text watermark’
- Save the Flow. You can test this Flow by uploading an image in JPG format to the Dropbox location. This will trigger the Flow after a minute and create a new image in JPG format with a watermark in the OneDrive for Business location.