I have been attempting to resize a base64 image without success. I tried using canvas, but it didn't work. I'm not sure what the issue is... Here is the code snippet I used:
const canvas = document.createElement('canvas'),
ctx = <CanvasRenderingContext2D>canvas.getContext('2d');
canvas.width = 100;
canvas.height = 100;
const img = new Image();
img.src = this.SelectedFile.src;
ctx.drawImage(img , 0, 0, 100, 100);
this.SelectedFile.src = ctx.canvas.toDataURL();
Does anyone have a different approach or insight into what might be causing the problem?