ssCore.SysTools.resizeImage

Resize an input image and save it as a JPEG image.


Availability:

First available in version 3.5 build 314.


Input Parameters:

source - Path to the source image to be resized. This parameter supports monikers.

destination - Path to the destination JPEG file to be created. This parameter supports monikers.

width - Width of the desired output image in pixels.

height - Height of the desired output image in pixels.

quality - JPEG quality setting from 0..100


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.SysTools.resizeImage( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.SysTools.resizeImage( paramsObject );


Notes:

None.


Examples:

ssCore.SysTools.resizeImage({source: "desktop://source.jpg", destination: "desktop://destination.jpg", width: 640, height: 480, quality: 100});