I want to get the length and width of a picture I uploaded and its base64 is. This is my code :
Image img = new Image();
img.src = Selectedimage.src;
Img.onload = function {
this.width = img.width;
this.height = img.height; }
The problem is that I do not have access to the variables in this class through «this». Someone knows what the problem is, or is there another way?