[JQuery] Get true width,height of image

1
2
var img = $("img")[0]; // Get my img elemvar pic_real_width, pic_real_height;
$("<img/>") // Make in memory copy of image to avoid css issues
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.