TecMax I think watermarking documentation is wrong. Please try this:
_c.config = {
uppy: {
Compressor: {
interface: false, // disable the resizer interface
enabled: true, // force the interface to apply, even if the interface is disabled
strict: true, // force images to go through the process, even if they aren't resized (so watermark can apply)
watermark: {
text: '©Rometec srl - www.rometec.it', // overlay text here, if you don't want to assign per-upload
position: 'bottom-right', // default overlay alignment
//interface: false, // this shouldn't be here!
scale: .33, // scale the overlay relative to the image width in fraction of 1 / .33 = 33%
margin: .03, // overlay margin from the image edges when using all positions except 'center' in fraction of 1 / .03 = 3%
font: '10px Arial', // assign a font, which must be available on the device that renders the overlay
fillStyle: 'black', // text fill color / only applies for text
shadowColor: 'rgba(0,0,0,.25)', // shadow color
}
}
}
}
One of the issues with the watermarking feature, is that it's ultimately tied to a "Compressor", with the main task of resizing and/or compressing images. We can only apply the watermark by forcing the Compressor to apply (which is necessary, because the image basically gets recreated and re-compressed after drawing the watermark).
I may need to look into the watermark feature again, and fix the documentation!