if (iratio > 1 && $('img.full').height < $(window).height()) {
$('img.full').width($(window).width());
$('img.full').height(width / iratio);
} else if (iratio > 1 && $('img.full').width < $(window).width()) {
$('img.full').width(height * iratio);
$('img.full').height($(window).height());
};
First if : if landscape picture and image height is less than viewport's, match image's width with viewport's, then calculate height from ratio, another var higher up,
var iratio = iwidth / iheight;
Second if: if portrait and image width is less than viewport's, match image's height with viewport's and calculate width.
What I need it that, but then something that'll say do it up to a point that both image's Height and Width match viewport's, freeze them, and just add on the remaining as margin-left (landscape picture) or margin-top(portrait picture).