Although you should resize your images on server side (using PHP and GD for example) it can be useful to be able to resize images using jQuery. Here’s a handy code snippet to do it.

Source: http://snipplr.com/view/62552/mage-resize/