FitTransformation

FitTransformation

new FitTransformation(options)

The FitTransformation class.
Parameters:
Name Type Description
options object The fit transformation options
Properties
Name Type Description
width number The width to resize
height number The height to resize

Extends

Methods

process(source, target, cb)

Transforms to target
Parameters:
Name Type Description
source string The source file path
target string The target file path
cb ImageTransformation~processCallback The callback function
Overrides: