Getting image dimensions via javascript
-
Hi everybody,
I need to get image dimensions of a wordpress image through javascript. Is there anyway I can do this or is there a way that wordpress automatically appends image dimensions to the uploaded image link?
so my code kind of looks like this:
$('body').append('<img src="image.jpg" width="' + w + '" height="' + h + '" alt="" />');Cheers!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Getting image dimensions via javascript’ is closed to new replies.