Creating a transformation function
Suppose we have a number of images that we want to copyright protect by adding a watermark. This can be achieved through a transformation function.
The following example shows how to add a watermark on an image. For the watermark, we will use the following image, but any image, preferably with some transparency, can be used.
Creating a transformation function
To create a transformation function, perform the following steps:
- Click on the "Settings"-tab.
- Click on "Transformations" in the left menu.
- Click on the "Create transformation"-button.
- Give it an appropriate name like "Watermark".
- Click on the "Add Transformation"-button.
- Add a canvas resize transformation with a size that matches our watermark image.
- Add a merge transformation with our resource image. This should be placed on top and in the middle of the image.
- Click on "Save".
The transformation function has now been saved and can be applied to images to add the watermark.
For more information on creating resource images, seeĀ Creating a resource image.