I am facing an issue with resizing an image and it doesn't recognize the new size even when I set it:
To better explain my problem, I have created a fiddle to show what I'm trying to achieve: https://jsfiddle.net/lightblue/w7tq3yrc/7/
Despite setting the width and height of both the image and canvas, the image does not resize accordingly and maintains its original dimensions.
ctx.putImageData(imgd, 20, 20);
How can I adjust it to properly fit within the specified height and width?
If there is a recommended library that can assist with this issue, I am open to suggestions.