CropTransformation

CropTransformation

new CropTransformation(options)

The CropTransformation class.
Parameters:
Name Type Description
options object The crop transformation options
Properties
Name Type Description
x number The crop start position on the x axis
y number The crop start position on the y axis
width number The width to crop
height number The height to crop

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: