Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Excerpt

The watermark modification applies and image overlay. You need to store your watermark image (png, gif, tiff) on an absolute path on the server. Then you can define a distance from the four borders in pixel (margin left, margin top, margin right, margin bottom). You can leave the margins empty. You must set the opacity (0.1 to 1) used for transparency and an aspect ratio - the ratio of the width of a shape to its height (e.g. 8:5, 16:10 and 1.6:1 are the same aspect ratio). 


PropertyValueDetails
kindWatermarkAction

watermarkFilePath

Send to support@picturepark.com to save on this path. 

The path does not need to be provided but only the file name e.g. picturepark_logo_watermark.png.

Identifies the image to be used as a watermark.
marginLeftcan be null, in PixelMargin to the left border of the image, in pixels.
marginTopcan be null, in Pixel

Margin to the top of the image, in pixels.

marginRightcan be null, in PixelMargin to the right border of the image, in pixels.
marginBottomcan be null, in PixelMargin to the bottom of the image, in pixels.
opacity

a number in range 0-100 although everything larger than 1 is no opacity at all

Choose a value between 0.1 and 0.9.

Scales the opacity of the watermark.
widthRatio

a number larger than 0, 0 is forbidden

e.g. 0.5 for half the size or 2 for double the size

Scales the watermark width according to the size of the final image. 

The widthRatio is used for orientation portrait. 


Tip

Use a square watermark file to ensure better-proportioned results. 


heightRatio

a number larger than 0, 0 is forbidden

e.g. 0.5 for half the size or 2 for double the size

Scales the watermark height according to the size of the final image.

The heightRatio is used for orientation landscape.  

Tip

Use a square watermark file to ensure better-proportioned results. 


...