B
B
B1dloKoder2018-02-11 14:15:54
JavaScript
B1dloKoder, 2018-02-11 14:15:54

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

1 answer(s)
M
Maxim Yakovenko, 2018-02-11
@TheLazzziest

Here are some
native
jquery solutions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question