riddlevn — 2012-05-18T03:53:31-04:00 — #1
How to get image attribute (height, width, alt, title) when knowning image src.
paul_wilkins — 2012-05-18T05:34:49-04:00 — #2
Create an img object and give us your image src, then once it has loaded get the image attributes that you need from it.
If you need to work with one that's already on the page, but you don't know where it is, search for all of the img tags on the page than filter them for the one that has a matching src.
omgcarlos — 2012-05-18T11:29:49-04:00 — #3
Yep. If you're using jquery you can get it like this:
var image_src = "foo.png"
$( 'img[src="' + image_src + '"]' );