how can i get the image width and height

how can i get the image width and height

Hi,

i am appending the images to div like this

$('#sideshow').append('<img src="'+document.getElementById('txtPath').value+'"/>');


i need to calculate the image width and height to store into database.

I need help for this.

Thanks in advance!