jQuery('#example').scale({mode: SCALE_DOWN, target: '#block1'});
jQuery('#example').scale({mode: SCALE_DOWN, target: '#block2'});
jQuery('#example').scale({mode: SCALE_UP, target: '#block1'});
jQuery('#example').scale({mode: SCALE_UP, target: '#block2'});
jQuery('#example').scale({mode: SCALE_SMART, target: '#block1'});
jQuery('#example').scale({mode: SCALE_SMART, target: '#block2'});
jQuery('img#example').scale({mode: SCALE_RAW, target: '50%'});
Image © 2009 Daniel*1997 from Flickr
jQuery('img#example').scale({mode: SCALE_MIN, target: '280x180'});
Image © 2009 Daniel*1997 from Flickr
jQuery('img#example').scale({mode: SCALE_MAX, target: [150,300]});
Image © 2009 Daniel*1997 from Flickr
Please visit: http://eric.garside.name/docs.html?p=scaling
The current version of Scaling can be downloaded from Google Code
You can also checkout the subversion repository for Scaling with the following command:
svn checkout http://scaling.googlecode.com/svn/trunk/ scaling-read-only