What I am trying to do is put a specific sized 'div' around a image based on the image size. I have the images I am going to use in a array. I need to get the height and width of the image in the array. I must have the height and width before it is appended to the page.
var images = ['pic1.jpg','pic2.jpg','pic3.jpg'];
for(i = 0; i < images.length; i++){
//then what do i do here? thanks for your help
}