rotate-image

rotate images in 90° increments

npm install rotate-image
8 downloads in the last month

rotate-image

rotate images in 90° increments

Installation

$ npm install nathan7/rotate-image nathan7/canvas

or

$ component install nathan7/rotate-image

API

rotateImage(image, rotation)

Rotates an image by the given rotation. Rotation is given as a number from 0 to 3 (out-of-range numbers are modulus'd)

License

MIT

npm loves you