Большое спасибо!
Действительно через load все работает
$('img.product-image-large').load(function(){
img_resize();
});
function img_resize() {
$('.product-image-large').each(function() {
$(this).width('');
$(this).height('');
var MAX_WIDTH = 220;
var MAX_HEIGHT = 180;
var img_width = $(this).width();
var img_height = $(this).height();
var ratio;
if(img_width<=MAX_WIDTH && img_height<=MAX_HEIGHT){ratio=1;}
else if(img_width>img_height){ ratio=MAX_WIDTH/img_width;}
else {ratio=MAX_HEIGHT/img_height;}
//alert(ratio);
//if (ratio>1){ratio=1;}
$(this).css("width", img_width*ratio); // Set new width
$(this).css("height", img_height*ratio); // Scale height based on
}); }//img_resize()