Author: Adeel Ejaz (http://adeelejaz.com/)
aeImageResize is a jQuery plugin to dynamically resize the images without distorting the proportions.
.aeImageResize( params )
A set of key/value pairs to set the height and width of the bounding box. Only one is required.
height
- An integer representing the maximum height for the image.
width
- An integer representing the maximum width for the image.
$(function() { $( ".resizeme" ).aeImageResize({ height: 250, width: 250 }); });
Sample images by FreeDigitalPhotos.net.