jQuery plugin to resize images - Please note you can also resize images using CSS. Check the link below.
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
src
MIT-LICENSE.txt
README.md
ae.image.resize.jquery.json

README.md

#jQuery Image Resize Plugin

Version: v2.1.3

A super light jQuery plugin (less than 0.5KB) to dynamically resize the images without distorting the proportions or adding any extra HTML.

Please note you can also resize images using CSS: http://adeelejaz.com/blog/resize-image-without-using-javascript-or-jquery/

####HTML:

<img class="resizeme" src="sample1.jpg">

####JavaScript

$(function() {
    $( ".resizeme" ).aeImageResize({ height: 250, width: 250 });
});

####Options height An integer representing the maximum height for the image.

width An integer representing the maximum width for the image.