Skip to content

Releases: GMartigny/crop-node

v2.1.0

29 Jan 22:22
Compare
Choose a tag to compare

ESM

23 Jan 13:39
Compare
Choose a tag to compare
ESM

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

22 Jan 12:59
Compare
Choose a tag to compare

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).