Here is a javascript (jQuery) solution that works to scale an 1x1 image to desired proportions:
I wrote this little function for you:
function resizeDummies()
{
$('img.dummy').each(function()
{
var i = $(this);
var iw = i.attr('width');
var ih = i.attr('height');
var pw = i.parent().width();
var h = Math.round(pw*ih/iw); // calculates "fluid" height
i.width(pw); // sets width = 100% of parent
i.height(h); // sets height = as image proportions but scaled
});
}
$(function()
{
resizeDummies();
});
$(window).resize(function()
{
resizeDummies();
});
It fixes image sizes for all dummy images both on load and on window resize. Of course it requires all w/h attributes to be set on the images.