Skip to content

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.

Copyrighted image

Creating a transformation function

To create a transformation function, perform the following steps:

  1. Click on the "Settings"-tab.
    Settings tab
  2. Click on "Transformations" in the left menu.
  3. Click on the "Create transformation"-button.
    Create Transformation function
  4. Give it an appropriate name like "Watermark".
  5. Click on the "Add Transformation"-button.
  6. Add a canvas resize transformation with a size that matches our watermark image.
    Add canvas resize transformation
  7. Add a merge transformation with our resource image. This should be placed on top and in the middle of the image.
    Add merge transformation
  8. 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.