ImageTransformation

ImageTransformation

(abstract) new ImageTransformation()

The ImageTransformation base class.

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

Type Definitions

processCallback(err, res)

Parameters:
Name Type Description
err Error The error occured
res ImageInfo The transformed resultInfo