Answer the question
In order to leave comments, you need to log in
How to get native image width and height?
If we add an img tag in the html code and don't provide dimensions for it, then the browser will render the image with its native width and height. Is there any method in js to get these values?
In general, the task is to proportionally scale the image and display it on the canvas
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question