src/javascript/image/Image.js
function(options) {
				var defaults = {
					width: this.width,
					height: this.height,
					type: this.type || 'image/jpeg',
					quality: 90,
					crop: false,
					fit: false,
					preserveHeaders: true,
					resample: 'default'
				}, opts;

				if (typeof(options) === 'object') {
					opts = Basic.extend(defaults, options);
				} else {
					// for backward compatibility
					opts = Basic.extend(defaults, {
						width: arguments[0],
						height: arguments[1],
						crop: arguments[2],
						preserveHeaders: arguments[3]
					});
				}

				this.resize(opts);
			}
function(options) {
				var defaults = {
					width: this.width,
					height: this.height,
					type: this.type || 'image/jpeg',
					quality: 90,
					crop: false,
					fit: false,
					preserveHeaders: true,
					resample: 'default'
				}, opts;

				if (typeof(options) === 'object') {
					opts = Basic.extend(defaults, options);
				} else {
					// for backward compatibility
					opts = Basic.extend(defaults, {
						width: arguments[0],
						height: arguments[1],
						crop: arguments[2],
						preserveHeaders: arguments[3]
					});
				}

				this.resize(opts);
			}
function ( options ) { var defaults = { width : this . width , height : this . height , type : this . type || 'image/jpeg' , quality : 90 , crop : false , fit : false , preserveHeaders : true , resample : 'default' } , opts ; if ( typeof ( options ) === 'object' ) { opts = Basic . extend ( defaults , options ) ; } else { // for backward compatibility opts = Basic . extend ( defaults , { width : arguments [ 0 ] , height : arguments [ 1 ] , crop : arguments [ 2 ] , preserveHeaders : arguments [ 3 ] } ) ; } this . resize ( opts ) ; }
Downsizes the image to fit the specified width/height. If crop is supplied, image will be cropped to exact dimensions.

@method downsize
@deprecated use resize()
Downsizes the image to fit the specified width / height . If crop is supplied image will be cropped to exact dimensions .