Skip to content

Releases: GMartigny/crop-node

v2.1.0

Choose a tag to compare

@GMartigny GMartigny released this 29 Jan 22:22

ESM

ESM

Choose a tag to compare

@GMartigny GMartigny released this 23 Jan 13:39

Since this version, crop-node is using ESM module declaration. This means you either have to use node@^13.7.0 or esm.
The detect-only options is deprecated in favor of the package detect-edges.
The input can now be a either a path to an image (old behavior) or a tainted canvas.

First release

Choose a tag to compare

@GMartigny GMartigny released this 22 Jan 12:59

Naive search for the first non-transparent pixel on all sides. Support 2 output format (png and jpg) and can only detect edges (return the number of transparent pixels on each sides).