Scaling Down


   
   jQuery('#example').scale({mode: SCALE_DOWN, target: '#block1'});
   jQuery('#example').scale({mode: SCALE_DOWN, target: '#block2'});
		

Scaling Up


   
   jQuery('#example').scale({mode: SCALE_UP, target: '#block1'});
   jQuery('#example').scale({mode: SCALE_UP, target: '#block2'});
		

Scaling Smart


   
   jQuery('#example').scale({mode: SCALE_SMART, target: '#block1'});
   jQuery('#example').scale({mode: SCALE_SMART, target: '#block2'});
		

Raw Scaling


   
   jQuery('img#example').scale({mode: SCALE_RAW, target: '50%'});
		

Image © 2009 Daniel*1997 from Flickr

Minimum Dimension


   
   jQuery('img#example').scale({mode: SCALE_MIN, target: '280x180'});
		

Image © 2009 Daniel*1997 from Flickr

Maximum Dimension


   
   jQuery('img#example').scale({mode: SCALE_MAX, target: [150,300]});
		

Image © 2009 Daniel*1997 from Flickr

Dcoumentation

Please visit: http://eric.garside.name/docs.html?p=scaling

Current Downloads

The current version of Scaling can be downloaded from Google Code

Subversion

You can also checkout the subversion repository for Scaling with the following command:

			
   svn checkout http://scaling.googlecode.com/svn/trunk/ scaling-read-only