#jQuery Fit
jQuery Fit is a plugin that will center and crop your images to fit perfectly in their container.
##Download
##Usage
$('.resize img').fit();
##Options
$('.resize img').fit({
resizeParent: true, //will resize the container to fit the resized image's aspect ratio [default: false]
resize: true //will make sure that the entire photo is visible. Resizes to fit the container and maintains aspect ratio [default: true]
});
##Events
$('img')
.fit()
.on('fit', function() {
//fires after EACH image has been processed
})
.on('end', function() {
//fires after ALL images have been processed
});