I'm using watermarkjs npm i watermarkjs trying to add watermark by placing logo to an image. I just want to increase or decrease watermark logo size. Do we have options for width size in watermark.js .
var options1 = {
init: function(img) {
img.crossOrigin = 'anonymous';
},
type: 'image/jpeg',
};
return await watermark([imageFile, logo], options1)
.blob(watermark.image.atPos((target, mark) => (target.width - mark.width) / 2, (target, metrics, ctx) => {
return 10;
}, waterMarkTextOpacity))