Skip to content
cezarsa edited this page Feb 26, 2012 · 2 revisions

Usage: watermark(imageUrl,x,y,alpha)

Description

This filter adds a watermark to the image.

Arguments

  • imageUrl - Watermark image URL. It is very important to understand that the same image loader that Thumbor uses will be used here.
  • x - Horizontal position that the watermark will be in. Positive numbers indicate position from the left and negative numbers indicate position from the right.
  • y - Vertical position that the watermark will be in. Positive numbers indicate position from the top and negative numbers indicate position from the bottom.
  • alpha - Watermark image transparency. Should be a number between 0 (fully opaque) and 100 (fully transparent).

Example

http://thumbor-server/filters:watermark(http://my.site.com/img.png,-10,-10,50)/some/image.jpg

Picture before the watermark filterPicture before the watermark filter

Picture after the watermark filterPicture after the watermark filter

Clone this wiki locally