apply-watermark-on-image
Reactive icon

Apply Watermark on Image

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 24 Dec (11 hours ago)
 by 
Eone Technologies Pvt Ltd
0.0
 (0 ratings)
apply-watermark-on-image

Apply Watermark on Image

Details
This asset uses JavaScript and the HTML5 Canvas API to place a watermark (logo or text) on an image. It loads the original image and watermark, draws them onto a canvas with configurable position, size, and opacity, and then outputs the final image as Base64
Read more

How the Asset Works

  1. Image Selection

    • The user selects a main image and a watermark image (logo).

    • Images are loaded using the JavaScript FileReader or Image() object.

  2. Canvas Rendering

    • The main image is drawn onto an HTML <canvas> element.

    • The canvas automatically adjusts its width and height to match the main image dimensions to preserve quality.

  3. Watermark Application

    • The watermark (logo or text) is drawn on top of the main image using drawImage() or fillText().

    • Supports:

      • Custom position (top-left, top-right, bottom-left, bottom-right, center)

      • Opacity control using globalAlpha

      • Scaling relative to the main image

      • Padding / margins

      • Rotation (optional)

  4. Final Image Output

    • The watermarked image is exported from the canvas using:

      • canvas.toDataURL() ? Base64 output

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category