When trying to use canvas to blur an image of text in NodeJS, it simply does nothing. This is an example of a Discord bot that's supposed to return a blurred image of the text "Hello World" in SansSerif, but what it actually returns is this
//create canvas and context
let cnvs = canvas.createCanvas(740, 260)
let ctx = cnvs.getContext('2d')
//set the context filter to blur
ctx.filter = 'blur(10px)';
//set the context font to sans serif size 48
ctx.font = '48px serif';
//add the text on the image
ctx.fillText('Hello world', 50, 100);
//send the image as a message attachment
message.channel.send({files: [{ attachment: cnvs.toBuffer() }]}).catch(allerrors)
None of the other context filters work either, all return the exact same image. I don't get any errors or warnings, it acts as if everything worked as intended.
Does anyone know what could cause this? Is there another workaround for turning an image grayscale, changing the hue or blurring it?