Skip to content

Code Theory

Web and Mobile Development articles

  • Home
  • About
  • Contact

Tag: image

Get the Original Width and Height of an Image

If you use the width and height properties of the image node (vanilla Javascript) or use jQuery’s width() or height() function, you’ll get the size that you see in the browser. Getting the actual dimension (native or natural width/height) of the image is actually quite easy. Let’s see how.

Continue reading “Get the Original Width and Height of an Image”

Author RishabhPosted on February 15, 2025Categories Tools & TipsTags image

Recent Posts

  • How to find a pattern with re.search in a Python string
  • How to pass **kwargs inside a Python function
  • How to override a method in a Python class

Subscribe

  • Follow on Twitter
  • RSS Feeds
  • Subscribe by Email
  • Home
  • About
  • Contact
Code Theory Proudly powered by WordPress