|
3 weeks ago | |
---|---|---|
.. | ||
es | 3 weeks ago | |
src | 3 weeks ago | |
test | 3 weeks ago | |
CHANGELOG.md | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
index.d.ts | 3 weeks ago | |
package.json | 3 weeks ago |
Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
@param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.rotate(90);
}
main();