var tmpImg = new Image(); tmpImg.src="https://www.google.com/intl/en_com/images/srpr/logo3w.png"; //or document.images[i].src; $(tmpImg).on('load',function(){ var orgWidth = tmpImg.width; var orgHeight = tmpImg.height; alert(orgWidth+"x"+orgHeight); });
a jak przekształcić to w fukcję typu:
function get_size(url, size) {
return width, height;
}
pomożecie? do czego to potrzebuję: do while
