Karl
it worked, got my website almost ready, the only problem is i cant use a custom font for watermark, using canvas in a normal page is very easy cause you can add the font via css for example, but here we are adding custom config to files script.
how i can load a local font and use it for the watermark?
`_c.config = {
uppy: {
Compressor: {
interface: false,
enabled: true,
strict: true,
maxWidth: 900,
maxHeight: 900,
drew: (context, canvas) => {
context.fillStyle = 'rgba(0, 0, 0, 0.4)';
context.fillRect( canvas.width / 2 -500, canvas.height / 2 -23 ,1200,30);
context.font = '22px arial';
context.textAlign = 'center';
context.fillStyle = 'rgba(255, 137, 198, 1)';
context.shadowColor = 'rgba(255, 137, 198, 1)';
context.shadowOffsetX = 0;
context.shadowOffsetY = 0;
context.shadowBlur = 10;
context.fillText('WATERMARKTEXTHERE', canvas.width / 2, canvas.height / 2);
},
error: function(err) {
window.alert(err.message);
}
}
}
}`
thanks,