Can I gather an image or video's native resolution in jQuery? I'm going to manipulate it's size later on, but need a reference to it's original res.
I've seen a few tags such as rootElement.height()
but no documentation on it.
Thank you!
Can I gather an image or video's native resolution in jQuery? I'm going to manipulate it's size later on, but need a reference to it's original res.
I've seen a few tags such as rootElement.height()
but no documentation on it.
Thank you!
You mean this? You may need to expand on your original question. If you want video resolution the javascript will be player dependent.