0.2.1 • Published 8 years ago

kroppa v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

kroppa

node module to crop jpeg files. Depends on jpeg-turbo which needs yasm to be installed.

Usage

Installation:

npm install kroppa

Usage

Single crop

const kroppa = require('kroppa');

const cropParameters = {
  x: 40,
  y: 40,
  width: 100,
  height: 200
};

const croppedImageData = kroppa.crop(imageBuffer, cropParameters);

Multiple crops at once

const kroppa = require('kroppa');

const cropParameters = [
  { x: 40, y: 40, width: 100, height: 200 },
  { x: 80, y: 80, width: 200, height: 500 }
];

const croppedImageData = kroppa.crop(imageBuffer, cropParameters);

LICENSE

MIT © Daniel Lundin 2016

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago