1.0.1 • Published 6 years ago

@astronomersiva/rotate-image v1.0.1

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

rotate-image Travis Build Status

Rotates a given image by n degrees with node-canvas.

Install

  • Run npm install -g @astronomersiva/rotate-image.

Usage

  • dest is optional. Defaults to rotated-${src}.
(async () => {
  const rotate = require('rotate-image');
  const options = {
    src: 'hello.png',
    dest: 'rotated.png',
    rotation: 60
  };

  await rotate(options);
})();

Screenshots

Before Rotation Before

After Rotation After