Home > Mobile >  how to add water mark on images in angular js?
how to add water mark on images in angular js?

Time:01-05

I tried ngx-watermark but its only working on text node. Not working on image. And watermarkJS which is not supportive for angular Js. I want apply "watermark image" on a image. how to achieve that?

CodePudding user response:

Install the image water mark npm i image-watermark and try the below code.

var watermark = require('image-watermark');
 
watermark.embedWatermark('\home\user\sample.jpg', {'text' : 'sample watermark'});

Refer this link:https://www.npmjs.com/package/image-watermark

CodePudding user response:

Thanks for your time. I added water mark in php api file instead in angular. Thank you.

  •  Tags:  
  • Related